From 258e6ad2a725e3f5a7fce69667c47c7e45babb6b Mon Sep 17 00:00:00 2001 From: Krzysztof Bialoglowicz Date: Tue, 10 Sep 2019 14:11:47 +0200 Subject: [PATCH] Remove Add icon from buttons --- .../components/AttributeListPage/AttributeListPage.tsx | 3 +-- .../components/CategoryListPage/CategoryListPage.tsx | 3 +-- .../components/CollectionListPage/CollectionListPage.tsx | 3 +-- .../CustomerAddressDialog/CustomerAddressDialog.tsx | 3 +-- .../CustomerAddressListPage/CustomerAddressListPage.tsx | 4 +--- .../components/CustomerListPage/CustomerListPage.tsx | 3 +-- src/discounts/components/SaleListPage/SaleListPage.tsx | 3 +-- src/discounts/components/VoucherListPage/VoucherListPage.tsx | 3 +-- src/navigation/components/MenuListPage/MenuListPage.tsx | 3 +-- .../components/OrderDraftListPage/OrderDraftListPage.tsx | 3 +-- src/orders/components/OrderListPage/OrderListPage.tsx | 3 +-- src/pages/components/PageListPage/PageListPage.tsx | 3 +-- .../components/ProductTypeListPage/ProductTypeListPage.tsx | 3 +-- src/products/components/ProductListPage/ProductListPage.tsx | 3 +-- src/staff/components/StaffListPage/StaffListPage.tsx | 3 +-- .../TranslationsLanguageListPage.tsx | 4 ++-- 16 files changed, 17 insertions(+), 33 deletions(-) diff --git a/src/attributes/components/AttributeListPage/AttributeListPage.tsx b/src/attributes/components/AttributeListPage/AttributeListPage.tsx index 079879def..e9482704a 100644 --- a/src/attributes/components/AttributeListPage/AttributeListPage.tsx +++ b/src/attributes/components/AttributeListPage/AttributeListPage.tsx @@ -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 = ({ defaultMessage="Create attribute" description="button" /> - diff --git a/src/categories/components/CategoryListPage/CategoryListPage.tsx b/src/categories/components/CategoryListPage/CategoryListPage.tsx index 01f80a663..b552a482e 100644 --- a/src/categories/components/CategoryListPage/CategoryListPage.tsx +++ b/src/categories/components/CategoryListPage/CategoryListPage.tsx @@ -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 = ({ defaultMessage="Create category" description="button" /> - = ({ defaultMessage="Create collection" description="button" /> - diff --git a/src/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx b/src/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx index 530da1de3..4d4253657 100644 --- a/src/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx +++ b/src/customers/components/CustomerAddressDialog/CustomerAddressDialog.tsx @@ -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" > - {variant === "create" && } diff --git a/src/customers/components/CustomerAddressListPage/CustomerAddressListPage.tsx b/src/customers/components/CustomerAddressListPage/CustomerAddressListPage.tsx index 36d67eeea..3c88b28e7 100644 --- a/src/customers/components/CustomerAddressListPage/CustomerAddressListPage.tsx +++ b/src/customers/components/CustomerAddressListPage/CustomerAddressListPage.tsx @@ -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" /> - )} @@ -120,7 +119,6 @@ const CustomerAddressListPage = withStyles(styles, { defaultMessage="Add address" description="button" /> - ) : ( diff --git a/src/customers/components/CustomerListPage/CustomerListPage.tsx b/src/customers/components/CustomerListPage/CustomerListPage.tsx index 02085d39a..d9fa44acb 100644 --- a/src/customers/components/CustomerListPage/CustomerListPage.tsx +++ b/src/customers/components/CustomerListPage/CustomerListPage.tsx @@ -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 = ({ defaultMessage="Add customer" description="button" /> - = ({ diff --git a/src/discounts/components/VoucherListPage/VoucherListPage.tsx b/src/discounts/components/VoucherListPage/VoucherListPage.tsx index a419405bd..3b3fea014 100644 --- a/src/discounts/components/VoucherListPage/VoucherListPage.tsx +++ b/src/discounts/components/VoucherListPage/VoucherListPage.tsx @@ -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 = ({ defaultMessage="Create voucher" description="button" /> - = ({ description="button" id="menuListPageAddMenu" /> - diff --git a/src/orders/components/OrderDraftListPage/OrderDraftListPage.tsx b/src/orders/components/OrderDraftListPage/OrderDraftListPage.tsx index 23fcff5d1..47c5383f7 100644 --- a/src/orders/components/OrderDraftListPage/OrderDraftListPage.tsx +++ b/src/orders/components/OrderDraftListPage/OrderDraftListPage.tsx @@ -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 = ({ defaultMessage="Create order" description="button" /> - diff --git a/src/orders/components/OrderListPage/OrderListPage.tsx b/src/orders/components/OrderListPage/OrderListPage.tsx index 3ccd68653..e02d61251 100644 --- a/src/orders/components/OrderListPage/OrderListPage.tsx +++ b/src/orders/components/OrderListPage/OrderListPage.tsx @@ -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 = ({ defaultMessage="Create order" description="button" /> - diff --git a/src/pages/components/PageListPage/PageListPage.tsx b/src/pages/components/PageListPage/PageListPage.tsx index 62b3d685a..c215829fd 100644 --- a/src/pages/components/PageListPage/PageListPage.tsx +++ b/src/pages/components/PageListPage/PageListPage.tsx @@ -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 = ({ color="primary" > - {" "} - diff --git a/src/products/components/ProductListPage/ProductListPage.tsx b/src/products/components/ProductListPage/ProductListPage.tsx index 9429b9a30..df567de10 100644 --- a/src/products/components/ProductListPage/ProductListPage.tsx +++ b/src/products/components/ProductListPage/ProductListPage.tsx @@ -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 = props => { defaultMessage="Create Product" description="button" /> - diff --git a/src/staff/components/StaffListPage/StaffListPage.tsx b/src/staff/components/StaffListPage/StaffListPage.tsx index 0233d544c..5f4faa668 100644 --- a/src/staff/components/StaffListPage/StaffListPage.tsx +++ b/src/staff/components/StaffListPage/StaffListPage.tsx @@ -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 = ({ defaultMessage="Invite staff member" description="button" /> - diff --git a/src/translations/components/TranslationsLanguageListPage/TranslationsLanguageListPage.tsx b/src/translations/components/TranslationsLanguageListPage/TranslationsLanguageListPage.tsx index e78ecc426..e08fc875e 100644 --- a/src/translations/components/TranslationsLanguageListPage/TranslationsLanguageListPage.tsx +++ b/src/translations/components/TranslationsLanguageListPage/TranslationsLanguageListPage.tsx @@ -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" /> - + */}