From 1f190c50dadf483781af5b3103f8b47dd6da540b Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Mon, 30 Sep 2019 14:34:08 +0200 Subject: [PATCH 1/3] Fix text styling --- .../views/CategoryList/CategoryList.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/categories/views/CategoryList/CategoryList.tsx b/src/categories/views/CategoryList/CategoryList.tsx index be57e3bda..7d5ff64dc 100644 --- a/src/categories/views/CategoryList/CategoryList.tsx +++ b/src/categories/views/CategoryList/CategoryList.tsx @@ -222,18 +222,20 @@ export const CategoryList: React.StatelessComponent = ({ })} variant="delete" > - params.ids.length), - displayQuantity: ( - {maybe(() => params.ids.length)} - ) - }} - /> + values={{ + counter: maybe(() => params.ids.length), + displayQuantity: ( + {maybe(() => params.ids.length)} + ) + }} + /> + From 8131d15d2386fef96ee89b06370502293b6515bb Mon Sep 17 00:00:00 2001 From: dominik-zeglen Date: Mon, 30 Sep 2019 15:14:11 +0200 Subject: [PATCH 2/3] Reset form after closing dialog --- .../AttributeListPage/AttributeListPage.tsx | 7 ++++++- .../views/AttributeList/AttributeList.tsx | 2 ++ .../components/MenuItemDialog/MenuItemDialog.tsx | 16 ++++++++++------ .../stories/attributes/AttributeListPage.tsx | 3 ++- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/attributes/components/AttributeListPage/AttributeListPage.tsx b/src/attributes/components/AttributeListPage/AttributeListPage.tsx index df735bd07..477cfff96 100644 --- a/src/attributes/components/AttributeListPage/AttributeListPage.tsx +++ b/src/attributes/components/AttributeListPage/AttributeListPage.tsx @@ -1,9 +1,9 @@ import Button from "@material-ui/core/Button"; import Card from "@material-ui/core/Card"; - import React from "react"; import { FormattedMessage, useIntl } from "react-intl"; +import AppHeader from "@saleor/components/AppHeader"; import SearchBar from "@saleor/components/SearchBar"; import { sectionNames } from "@saleor/intl"; import Container from "../../../components/Container"; @@ -23,10 +23,12 @@ export interface AttributeListPageProps SearchPageProps, TabPageProps { attributes: AttributeList_attributes_edges_node[]; + onBack: () => void; } const AttributeListPage: React.FC = ({ onAdd, + onBack, initialSearch, onSearchChange, currentTab, @@ -41,6 +43,9 @@ const AttributeListPage: React.FC = ({ return ( + + +