Remove Add icon from buttons
This commit is contained in:
parent
c5bc5cf579
commit
258e6ad2a7
16 changed files with 17 additions and 33 deletions
|
@ -1,6 +1,6 @@
|
|||
import Button from "@material-ui/core/Button";
|
||||
import Card from "@material-ui/core/Card";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
@ -29,7 +29,6 @@ const AttributeListPage: React.FC<AttributeListPageProps> = ({
|
|||
defaultMessage="Create attribute"
|
||||
description="button"
|
||||
/>
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<Card>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Button from "@material-ui/core/Button";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
@ -47,7 +47,6 @@ export const CategoryListPage: React.StatelessComponent<CategoryTableProps> = ({
|
|||
defaultMessage="Create category"
|
||||
description="button"
|
||||
/>
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<CategoryList
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Button from "@material-ui/core/Button";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
@ -34,7 +34,6 @@ const CollectionListPage: React.StatelessComponent<CollectionListPageProps> = ({
|
|||
defaultMessage="Create collection"
|
||||
description="button"
|
||||
/>
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<CollectionList disabled={disabled} {...listProps} />
|
||||
|
|
|
@ -4,7 +4,7 @@ import DialogActions from "@material-ui/core/DialogActions";
|
|||
import DialogContent from "@material-ui/core/DialogContent";
|
||||
import DialogTitle from "@material-ui/core/DialogTitle";
|
||||
import { createStyles, withStyles, WithStyles } from "@material-ui/core/styles";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
|
||||
|
@ -132,7 +132,6 @@ const CustomerAddressDialog = withStyles(styles, {})(
|
|||
type="submit"
|
||||
>
|
||||
<FormattedMessage {...buttonMessages.save} />
|
||||
{variant === "create" && <AddIcon />}
|
||||
</ConfirmButton>
|
||||
</DialogActions>
|
||||
</>
|
||||
|
|
|
@ -6,7 +6,7 @@ import {
|
|||
WithStyles
|
||||
} from "@material-ui/core/styles";
|
||||
import Typography from "@material-ui/core/Typography";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
@ -98,7 +98,6 @@ const CustomerAddressListPage = withStyles(styles, {
|
|||
defaultMessage="Add address"
|
||||
description="button"
|
||||
/>
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
)}
|
||||
|
@ -120,7 +119,6 @@ const CustomerAddressListPage = withStyles(styles, {
|
|||
defaultMessage="Add address"
|
||||
description="button"
|
||||
/>
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</div>
|
||||
) : (
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Button from "@material-ui/core/Button";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
@ -35,7 +35,6 @@ const CustomerListPage: React.StatelessComponent<CustomerListPageProps> = ({
|
|||
defaultMessage="Add customer"
|
||||
description="button"
|
||||
/>
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<CustomerList
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Button from "@material-ui/core/Button";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
@ -26,7 +26,6 @@ const SaleListPage: React.StatelessComponent<SaleListPageProps> = ({
|
|||
<PageHeader title={intl.formatMessage(sectionNames.sales)}>
|
||||
<Button onClick={onAdd} variant="contained" color="primary">
|
||||
<FormattedMessage defaultMessage="Create Sale" description="button" />
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<SaleList {...listProps} />
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Button from "@material-ui/core/Button";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
@ -42,7 +42,6 @@ const VoucherListPage: React.StatelessComponent<VoucherListPageProps> = ({
|
|||
defaultMessage="Create voucher"
|
||||
description="button"
|
||||
/>
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<VoucherList
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Button from "@material-ui/core/Button";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
@ -41,7 +41,6 @@ const MenuListPage: React.StatelessComponent<MenuListPageProps> = ({
|
|||
description="button"
|
||||
id="menuListPageAddMenu"
|
||||
/>
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<MenuList disabled={disabled} {...listProps} />
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Button from "@material-ui/core/Button";
|
||||
import Card from "@material-ui/core/Card";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
@ -35,7 +35,6 @@ const OrderDraftListPage: React.StatelessComponent<OrderDraftListPageProps> = ({
|
|||
defaultMessage="Create order"
|
||||
description="button"
|
||||
/>
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<Card>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Button from "@material-ui/core/Button";
|
||||
import Card from "@material-ui/core/Card";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
@ -45,7 +45,6 @@ const OrderListPage: React.FC<OrderListPageProps> = ({
|
|||
defaultMessage="Create order"
|
||||
description="button"
|
||||
/>
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<Card>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Button from "@material-ui/core/Button";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
@ -48,7 +48,6 @@ const PageListPage: React.StatelessComponent<PageListPageProps> = ({
|
|||
color="primary"
|
||||
>
|
||||
<FormattedMessage defaultMessage="Create page" description="button" />
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<PageList
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Button from "@material-ui/core/Button";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
@ -37,7 +37,6 @@ const ProductTypeListPage: React.StatelessComponent<
|
|||
defaultMessage="create product type"
|
||||
description="button"
|
||||
/>{" "}
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<ProductTypeList disabled={disabled} {...listProps} />
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Button from "@material-ui/core/Button";
|
||||
import Card from "@material-ui/core/Card";
|
||||
import { Theme } from "@material-ui/core/styles";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import makeStyles from "@material-ui/styles/makeStyles";
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
@ -133,7 +133,6 @@ export const ProductListPage: React.FC<ProductListPageProps> = props => {
|
|||
defaultMessage="Create Product"
|
||||
description="button"
|
||||
/>
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<Card>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Button from "@material-ui/core/Button";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
|
||||
import React from "react";
|
||||
import { FormattedMessage, useIntl } from "react-intl";
|
||||
|
||||
|
@ -41,7 +41,6 @@ const StaffListPage: React.StatelessComponent<StaffListPageProps> = ({
|
|||
defaultMessage="Invite staff member"
|
||||
description="button"
|
||||
/>
|
||||
<AddIcon />
|
||||
</Button>
|
||||
</PageHeader>
|
||||
<StaffList disabled={disabled} {...listProps} />
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// import Button from "@material-ui/core/Button";
|
||||
// import AddIcon from "@material-ui/icons/Add";
|
||||
//
|
||||
import React from "react";
|
||||
import { useIntl } from "react-intl";
|
||||
|
||||
|
@ -32,7 +32,7 @@ const TranslationsLanguageListPage: React.StatelessComponent<
|
|||
defaultMessage="Add Language"
|
||||
description="button"
|
||||
/>
|
||||
<AddIcon />
|
||||
|
||||
</Button> */}
|
||||
</PageHeader>
|
||||
<TranslationsLanguageList languages={languages} onRowClick={onRowClick} />
|
||||
|
|
Loading…
Reference in a new issue