Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add default helper text to seo form
dominik-zeglend52658d851de
diff --git a/saleor/static/dashboard-next/components/SeoForm/SeoForm.tsx b/saleor/static/dashboard-next/components/SeoForm/SeoForm.tsxindex a7ff971f90..0eefaebab2 100644--- a/saleor/static/dashboard-next/components/SeoForm/SeoForm.tsx+++ b/saleor/static/dashboard-next/components/SeoForm/SeoForm.tsx@@ -169,4 +169,9 @@ const SeoForm = withStyles(styles, { name: "SeoForm" })());SeoForm.displayName = "SeoForm";+SeoForm.defaultProps = {+ helperText: i18n.t(+ "Add search engine title and description to make this product easier to find"+ )+};export default SeoForm;diff --git a/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsx b/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsxindex 7099fa2b05..8ae7102dc6 100644--- a/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsx+++ b/saleor/static/dashboard-next/products/components/ProductUpdatePage/ProductUpdatePage.tsx@@ -9,7 +9,6 @@ import Grid from "../../../components/Grid";import PageHeader from "../../../components/PageHeader";import SaveButtonBar from "../../../components/SaveButtonBar/SaveButtonBar";import SeoForm from "../../../components/SeoForm";-import i18n from "../../../i18n";import { maybe } from "../../../misc";import { UserError } from "../../../types";import {@@ -248,9 +247,6 @@ export const ProductUpdate: React.StatelessComponent<ProductUpdateProps> = ({)}<CardSpacer /><SeoForm- helperText={i18n.t(- "Add search engine title and description to make this product easier to find"- )}title={data.seoTitle}titlePlaceholder={data.name}description={data.seoDescription}