Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Copy changes
dominik-zeglen87ad0bccf11c
diff --git a/saleor/static/dashboard-next/components/Filter/FilterContent.tsx b/saleor/static/dashboard-next/components/Filter/FilterContent.tsxindex ac83db0ef3..3822d8cdb0 100644--- a/saleor/static/dashboard-next/components/Filter/FilterContent.tsx+++ b/saleor/static/dashboard-next/components/Filter/FilterContent.tsx@@ -1,4 +1,5 @@import Button from "@material-ui/core/Button";+import Typography from "@material-ui/core/Typography";import * as React from "react";import { makeStyles } from "@material-ui/styles";@@ -102,6 +103,9 @@ const FilterContent: React.FC<FilterContentProps> = ({{activeMenu && isLeaf(activeMenu) && (<><FormSpacer />+ {activeMenu.data.additionalText && (+ <Typography>{activeMenu.data.additionalText}</Typography>+ )}<FilterElementcurrencySymbol={currencySymbol}filter={activeMenu}diff --git a/saleor/static/dashboard-next/components/Filter/FilterElement.tsx b/saleor/static/dashboard-next/components/Filter/FilterElement.tsxindex 48d6d8db39..25ac136ed8 100644--- a/saleor/static/dashboard-next/components/Filter/FilterElement.tsx+++ b/saleor/static/dashboard-next/components/Filter/FilterElement.tsx@@ -190,21 +190,18 @@ const FilterElement: React.FC<FilterElementProps> = ({);}return (- <>- <Typography>{i18n.t("is")}</Typography>- <TextField- className={className}- fullWidth- label={filter.data.fieldLabel}- InputProps={{- classes: {- input: !filter.data.fieldLabel && classes.input- }- }}- onChange={event => onChange(event.target.value)}- value={value as string}- />- </>+ <TextField+ className={className}+ fullWidth+ label={filter.data.fieldLabel}+ InputProps={{+ classes: {+ input: !filter.data.fieldLabel && classes.input+ }+ }}+ onChange={event => onChange(event.target.value)}+ value={value as string}+ />);};FilterElement.displayName = "FilterElement";diff --git a/saleor/static/dashboard-next/components/Filter/types.ts b/saleor/static/dashboard-next/components/Filter/types.tsindex 56a6b4e9de..fe93579c73 100644--- a/saleor/static/dashboard-next/components/Filter/types.ts+++ b/saleor/static/dashboard-next/components/Filter/types.ts@@ -17,6 +17,7 @@ export interface FilterChoice {}export interface FilterData {+ additionalText?: string;fieldLabel: string;options?: FilterChoice[];type: FieldType;diff --git a/saleor/static/dashboard-next/products/components/ProductListFilter/ProductListFilter.tsx b/saleor/static/dashboard-next/products/components/ProductListFilter/ProductListFilter.tsxindex ad1b64e5bb..7d7b7f1739 100644--- a/saleor/static/dashboard-next/products/components/ProductListFilter/ProductListFilter.tsx+++ b/saleor/static/dashboard-next/products/components/ProductListFilter/ProductListFilter.tsx@@ -37,10 +37,11 @@ const filterMenu: IFilter = [{children: [],data: {+ additionalText: i18n.t("is set as"),fieldLabel: i18n.t("Status"),options: [{- label: i18n.t("Published"),+ label: i18n.t("Visible"),value: true},{@@ -50,7 +51,7 @@ const filterMenu: IFilter = [],type: FieldType.select},- label: i18n.t("Published"),+ label: i18n.t("Visibility"),value: ProductFilterKeys.published.toString()},{@@ -77,6 +78,7 @@ const filterMenu: IFilter = [{children: [],data: {+ additionalText: i18n.t("equals"),fieldLabel: null,type: FieldType.price},