diff --git a/src/attributes/components/AttributeBulkDeleteDialog/AttributeBulkDeleteDialog.tsx b/src/attributes/components/AttributeBulkDeleteDialog/AttributeBulkDeleteDialog.tsx index 8d941dcf0..747b5f3df 100644 --- a/src/attributes/components/AttributeBulkDeleteDialog/AttributeBulkDeleteDialog.tsx +++ b/src/attributes/components/AttributeBulkDeleteDialog/AttributeBulkDeleteDialog.tsx @@ -24,9 +24,10 @@ const AttributeBulkDeleteDialog: React.StatelessComponent< confirmButtonState={confirmButtonState} onClose={onClose} onConfirm={onConfirm} - title={intl.formatMessage({defaultMessage: "Delete attributes", - description: "dialog title", - })} + title={intl.formatMessage({ + defaultMessage: "Delete attributes", + description: "dialog title" + })} variant="delete" > diff --git a/src/attributes/components/AttributeDeleteDialog/AttributeDeleteDialog.tsx b/src/attributes/components/AttributeDeleteDialog/AttributeDeleteDialog.tsx index 9043d0ca7..90c3c09e3 100644 --- a/src/attributes/components/AttributeDeleteDialog/AttributeDeleteDialog.tsx +++ b/src/attributes/components/AttributeDeleteDialog/AttributeDeleteDialog.tsx @@ -29,9 +29,10 @@ const AttributeDeleteDialog: React.FC = ({ confirmButtonState={confirmButtonState} onConfirm={onConfirm} variant="delete" - title={intl.formatMessage({defaultMessage: "Delete attribute", - description: "dialog title", - })} + title={intl.formatMessage({ + defaultMessage: "Delete attribute", + description: "dialog title" + })} > = ({ const intl = useIntl(); const inputTypeChoices = [ { - label: intl.formatMessage({defaultMessage: "Dropdown", - description: "product attribute type", - }), + label: intl.formatMessage({ + defaultMessage: "Dropdown", + description: "product attribute type" + }), value: AttributeInputTypeEnum.DROPDOWN }, { - label: intl.formatMessage({defaultMessage: "Multiple Select", - description: "product attribute type", - }), + label: intl.formatMessage({ + defaultMessage: "Multiple Select", + description: "product attribute type" + }), value: AttributeInputTypeEnum.MULTISELECT } ]; @@ -54,9 +56,10 @@ const AttributeDetails: React.FC = ({ = ({ = ({ disabled={disabled || !canChangeType} error={!!errors.inputType} hint={errors.inputType} - label={intl.formatMessage({defaultMessage: "Catalog Input type for Store Owner", - description: "attribute's editor component", - })} + label={intl.formatMessage({ + defaultMessage: "Catalog Input type for Store Owner", + description: "attribute's editor component" + })} name="inputType" onChange={onChange} value={data.inputType} @@ -99,9 +105,10 @@ const AttributeDetails: React.FC = ({ diff --git a/src/attributes/components/AttributeList/AttributeList.tsx b/src/attributes/components/AttributeList/AttributeList.tsx index 14d5c9841..a889c653c 100644 --- a/src/attributes/components/AttributeList/AttributeList.tsx +++ b/src/attributes/components/AttributeList/AttributeList.tsx @@ -83,37 +83,30 @@ const AttributeList: React.StatelessComponent = ({ toolbar={toolbar} > - + @@ -185,10 +178,7 @@ const AttributeList: React.StatelessComponent = ({ () => ( - + ) diff --git a/src/attributes/components/AttributePage/AttributePage.tsx b/src/attributes/components/AttributePage/AttributePage.tsx index 9108ffa81..1b90fe960 100644 --- a/src/attributes/components/AttributePage/AttributePage.tsx +++ b/src/attributes/components/AttributePage/AttributePage.tsx @@ -119,8 +119,7 @@ const AttributePage: React.FC = ({ attribute === null ? intl.formatMessage({ defaultMessage: "Create New Attribute", - description: "page title", - + description: "page title" }) : maybe(() => attribute.name) } diff --git a/src/attributes/components/AttributeValueDeleteDialog/AttributeValueDeleteDialog.tsx b/src/attributes/components/AttributeValueDeleteDialog/AttributeValueDeleteDialog.tsx index 54e929705..032ddbf40 100644 --- a/src/attributes/components/AttributeValueDeleteDialog/AttributeValueDeleteDialog.tsx +++ b/src/attributes/components/AttributeValueDeleteDialog/AttributeValueDeleteDialog.tsx @@ -35,15 +35,13 @@ const AttributeValueDeleteDialog: React.FC = ({ variant="delete" title={intl.formatMessage({ defaultMessage: "Delete attribute value", - description: "dialog title", - + description: "dialog title" })} > {useName ? ( = ({ ) : ( )} @@ -77,8 +75,7 @@ const AttributeValueEditDialog: React.StatelessComponent< name={"name" as keyof AttributeValueEditDialogFormData} label={intl.formatMessage({ defaultMessage: "Name", - description: "attribute name", - + description: "attribute name" })} value={data.name} onChange={change} diff --git a/src/attributes/components/AttributeValues/AttributeValues.tsx b/src/attributes/components/AttributeValues/AttributeValues.tsx index f63d31431..bd9d2fbf3 100644 --- a/src/attributes/components/AttributeValues/AttributeValues.tsx +++ b/src/attributes/components/AttributeValues/AttributeValues.tsx @@ -70,15 +70,13 @@ const AttributeValues: React.FC = ({ } @@ -91,14 +89,12 @@ const AttributeValues: React.FC = ({ @@ -137,7 +133,6 @@ const AttributeValues: React.FC = ({ diff --git a/src/attributes/views/AttributeDetails/AttributeDetails.tsx b/src/attributes/views/AttributeDetails/AttributeDetails.tsx index f39263083..e6870487a 100644 --- a/src/attributes/views/AttributeDetails/AttributeDetails.tsx +++ b/src/attributes/views/AttributeDetails/AttributeDetails.tsx @@ -67,8 +67,7 @@ const AttributeDetails: React.FC = ({ id, params }) => { if (data.attributeDelete.errors.length === 0) { notify({ text: intl.formatMessage({ - defaultMessage: "Attribute deleted", - + defaultMessage: "Attribute deleted" }) }); navigate(attributeListUrl()); @@ -79,8 +78,7 @@ const AttributeDetails: React.FC = ({ id, params }) => { notify({ text: intl.formatMessage({ defaultMessage: "Value deleted", - description: "attribute value deleted", - + description: "attribute value deleted" }) }); closeModal(); @@ -102,8 +100,7 @@ const AttributeDetails: React.FC = ({ id, params }) => { notify({ text: intl.formatMessage({ defaultMessage: "Added new value", - description: "added new attribute value", - + description: "added new attribute value" }) }); closeModal(); diff --git a/src/attributes/views/AttributeList/AttributeList.tsx b/src/attributes/views/AttributeList/AttributeList.tsx index 65cb59246..262d4e727 100644 --- a/src/attributes/views/AttributeList/AttributeList.tsx +++ b/src/attributes/views/AttributeList/AttributeList.tsx @@ -74,8 +74,7 @@ const AttributeList: React.FC = ({ params }) => { notify({ text: intl.formatMessage({ defaultMessage: "Attributes successfully delete", - description: "deleted multiple attributes", - + description: "deleted multiple attributes" }) }); reset(); diff --git a/src/categories/components/CategoryBackground/CategoryBackground.tsx b/src/categories/components/CategoryBackground/CategoryBackground.tsx index f308752d9..dbda369be 100644 --- a/src/categories/components/CategoryBackground/CategoryBackground.tsx +++ b/src/categories/components/CategoryBackground/CategoryBackground.tsx @@ -61,8 +61,7 @@ const CategoryBackground: React.FC = props => { diff --git a/src/categories/components/CategoryCreatePage/CategoryCreatePage.tsx b/src/categories/components/CategoryCreatePage/CategoryCreatePage.tsx index 989d67fcc..3e095189c 100644 --- a/src/categories/components/CategoryCreatePage/CategoryCreatePage.tsx +++ b/src/categories/components/CategoryCreatePage/CategoryCreatePage.tsx @@ -61,8 +61,7 @@ export const CategoryCreatePage: React.StatelessComponent<
@@ -76,8 +75,7 @@ export const CategoryCreatePage: React.StatelessComponent< @@ -49,7 +48,6 @@ const CategoryDeleteDialog = withStyles(styles, { {name} }} diff --git a/src/categories/components/CategoryDetailsForm/CategoryDetailsForm.tsx b/src/categories/components/CategoryDetailsForm/CategoryDetailsForm.tsx index 7664867a7..75332a772 100644 --- a/src/categories/components/CategoryDetailsForm/CategoryDetailsForm.tsx +++ b/src/categories/components/CategoryDetailsForm/CategoryDetailsForm.tsx @@ -54,8 +54,7 @@ export const CategoryDetailsForm = withStyles(styles, { JSON.parse(category.descriptionJson))} name="description" diff --git a/src/categories/components/CategoryList/CategoryList.tsx b/src/categories/components/CategoryList/CategoryList.tsx index f19eceeb3..2db043d80 100644 --- a/src/categories/components/CategoryList/CategoryList.tsx +++ b/src/categories/components/CategoryList/CategoryList.tsx @@ -96,15 +96,13 @@ const CategoryList = withStyles(styles, { name: "CategoryList" })( } @@ -120,23 +118,18 @@ const CategoryList = withStyles(styles, { name: "CategoryList" })( toolbar={toolbar} > - + @@ -207,15 +200,9 @@ const CategoryList = withStyles(styles, { name: "CategoryList" })( {isRoot ? ( - + ) : ( - + )} diff --git a/src/categories/components/CategoryListPage/CategoryListPage.tsx b/src/categories/components/CategoryListPage/CategoryListPage.tsx index 42f7f1f69..a3428f4fc 100644 --- a/src/categories/components/CategoryListPage/CategoryListPage.tsx +++ b/src/categories/components/CategoryListPage/CategoryListPage.tsx @@ -46,7 +46,6 @@ export const CategoryListPage: React.StatelessComponent = ({ diff --git a/src/categories/components/CategoryProducts/CategoryProducts.tsx b/src/categories/components/CategoryProducts/CategoryProducts.tsx index ec3f5a6d0..3615351bd 100644 --- a/src/categories/components/CategoryProducts/CategoryProducts.tsx +++ b/src/categories/components/CategoryProducts/CategoryProducts.tsx @@ -69,15 +69,13 @@ export const ProductList = withStyles(styles, { name: "ProductList" })( } @@ -90,13 +88,13 @@ export const ProductList = withStyles(styles, { name: "ProductList" })( - + /> @@ -143,8 +141,7 @@ export const ProductList = withStyles(styles, { name: "ProductList" })( () => ( - + ) diff --git a/src/categories/components/CategoryUpdatePage/CategoryUpdatePage.tsx b/src/categories/components/CategoryUpdatePage/CategoryUpdatePage.tsx index d63b9878d..05e02cdbb 100644 --- a/src/categories/components/CategoryUpdatePage/CategoryUpdatePage.tsx +++ b/src/categories/components/CategoryUpdatePage/CategoryUpdatePage.tsx @@ -145,8 +145,7 @@ export const CategoryUpdatePage: React.StatelessComponent< - + /> - + /> diff --git a/src/categories/views/CategoryCreate.tsx b/src/categories/views/CategoryCreate.tsx index ede26c9fb..c56212c4f 100644 --- a/src/categories/views/CategoryCreate.tsx +++ b/src/categories/views/CategoryCreate.tsx @@ -25,8 +25,7 @@ export const CategoryCreateView: React.StatelessComponent< if (data.categoryCreate.errors.length === 0) { notify({ text: intl.formatMessage({ - defaultMessage: "Category created", - + defaultMessage: "Category created" }) }); navigate(categoryUrl(data.categoryCreate.category.id)); @@ -51,8 +50,7 @@ export const CategoryCreateView: React.StatelessComponent< @@ -132,8 +131,7 @@ const CollectionCreatePage: React.StatelessComponent< descriptionPlaceholder="" helperText={intl.formatMessage({ defaultMessage: - "Add search engine title and description to make this collection easier to find", - + "Add search engine title and description to make this collection easier to find" })} title={data.seoTitle} titlePlaceholder={data.name} diff --git a/src/collections/components/CollectionDetails/CollectionDetails.tsx b/src/collections/components/CollectionDetails/CollectionDetails.tsx index c152e0689..56374d94f 100644 --- a/src/collections/components/CollectionDetails/CollectionDetails.tsx +++ b/src/collections/components/CollectionDetails/CollectionDetails.tsx @@ -52,8 +52,7 @@ const CollectionDetails = withStyles(styles, { name: "CollectionDetails" })( classes={{ root: classes.name }} label={intl.formatMessage({ defaultMessage: "Name", - description: "collection name", - + description: "collection name" })} name="name" disabled={disabled} diff --git a/src/collections/components/CollectionDetailsPage/CollectionDetailsPage.tsx b/src/collections/components/CollectionDetailsPage/CollectionDetailsPage.tsx index 900e881b3..91e565d7a 100644 --- a/src/collections/components/CollectionDetailsPage/CollectionDetailsPage.tsx +++ b/src/collections/components/CollectionDetailsPage/CollectionDetailsPage.tsx @@ -111,8 +111,7 @@ const CollectionDetailsPage: React.StatelessComponent< descriptionPlaceholder="" helperText={intl.formatMessage({ defaultMessage: - "Add search engine title and description to make this collection easier to find", - + "Add search engine title and description to make this collection easier to find" })} title={data.seoTitle} titlePlaceholder={maybe(() => collection.name)} @@ -134,8 +133,7 @@ const CollectionDetailsPage: React.StatelessComponent< onChange={change} label={intl.formatMessage({ defaultMessage: "Feature on Homepage", - description: "switch button", - + description: "switch button" })} /> diff --git a/src/collections/components/CollectionImage/CollectionImage.tsx b/src/collections/components/CollectionImage/CollectionImage.tsx index c8d1f3d02..04a4d1446 100644 --- a/src/collections/components/CollectionImage/CollectionImage.tsx +++ b/src/collections/components/CollectionImage/CollectionImage.tsx @@ -81,8 +81,7 @@ export const CollectionImage = withStyles(styles)( diff --git a/src/collections/components/CollectionList/CollectionList.tsx b/src/collections/components/CollectionList/CollectionList.tsx index 7a06e985e..ff5763b18 100644 --- a/src/collections/components/CollectionList/CollectionList.tsx +++ b/src/collections/components/CollectionList/CollectionList.tsx @@ -83,17 +83,16 @@ const CollectionList = withStyles(styles, { name: "CollectionList" })( toolbar={toolbar} > - + - + - + /> @@ -159,13 +158,11 @@ const CollectionList = withStyles(styles, { name: "CollectionList" })( collection.isPublished ? intl.formatMessage({ defaultMessage: "Published", - description: "collection is published", - + description: "collection is published" }) : intl.formatMessage({ defaultMessage: "Not published", - description: "collection is not published", - + description: "collection is not published" }) } /> @@ -179,8 +176,7 @@ const CollectionList = withStyles(styles, { name: "CollectionList" })( () => ( - + ) diff --git a/src/collections/components/CollectionListPage/CollectionListPage.tsx b/src/collections/components/CollectionListPage/CollectionListPage.tsx index 892481c7a..6101c3843 100644 --- a/src/collections/components/CollectionListPage/CollectionListPage.tsx +++ b/src/collections/components/CollectionListPage/CollectionListPage.tsx @@ -30,9 +30,10 @@ const CollectionListPage: React.StatelessComponent = ({ variant="contained" onClick={onAdd} > - + /> diff --git a/src/collections/containers/CollectionOperations.tsx b/src/collections/containers/CollectionOperations.tsx index 694d85915..36d5bc12f 100644 --- a/src/collections/containers/CollectionOperations.tsx +++ b/src/collections/containers/CollectionOperations.tsx @@ -31,30 +31,28 @@ import { } from "../types/UnassignCollectionProduct"; interface CollectionUpdateOperationsProps { - children: ( - props: { - updateCollectionWithHomepage: PartialMutationProviderOutput< - CollectionUpdateWithHomepage, - CollectionUpdateWithHomepageVariables - >; - assignProduct: PartialMutationProviderOutput< - CollectionAssignProduct, - CollectionAssignProductVariables - >; - unassignProduct: PartialMutationProviderOutput< - UnassignCollectionProduct, - UnassignCollectionProductVariables - >; - updateCollection: PartialMutationProviderOutput< - CollectionUpdate, - CollectionUpdateVariables - >; - removeCollection: PartialMutationProviderOutput< - RemoveCollection, - RemoveCollectionVariables - >; - } - ) => React.ReactNode; + children: (props: { + updateCollectionWithHomepage: PartialMutationProviderOutput< + CollectionUpdateWithHomepage, + CollectionUpdateWithHomepageVariables + >; + assignProduct: PartialMutationProviderOutput< + CollectionAssignProduct, + CollectionAssignProductVariables + >; + unassignProduct: PartialMutationProviderOutput< + UnassignCollectionProduct, + UnassignCollectionProductVariables + >; + updateCollection: PartialMutationProviderOutput< + CollectionUpdate, + CollectionUpdateVariables + >; + removeCollection: PartialMutationProviderOutput< + RemoveCollection, + RemoveCollectionVariables + >; + }) => React.ReactNode; onUpdate: (data: CollectionUpdate) => void; onProductAssign: (data: CollectionAssignProduct) => void; onProductUnassign: (data: UnassignCollectionProduct) => void; diff --git a/src/collections/views/CollectionCreate.tsx b/src/collections/views/CollectionCreate.tsx index e55dddf01..9b747b30e 100644 --- a/src/collections/views/CollectionCreate.tsx +++ b/src/collections/views/CollectionCreate.tsx @@ -20,8 +20,7 @@ export const CollectionCreate: React.FC = () => { if (data.collectionCreate.errors.length === 0) { notify({ text: intl.formatMessage({ - defaultMessage: "Created collection", - + defaultMessage: "Created collection" }) }); navigate(collectionUrl(data.collectionCreate.collection.id)); @@ -50,8 +49,7 @@ export const CollectionCreate: React.FC = () => {