Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Improve labels

dominik-zeglen258362ec6dbe
diff --git a/saleor/static/dashboard-next/siteSettings/components/SiteSettingsDetails/SiteSettingsDetails.tsx b/saleor/static/dashboard-next/siteSettings/components/SiteSettingsDetails/SiteSettingsDetails.tsx
index 00d45b6f68..8c0fb69ba9 100644
--- a/saleor/static/dashboard-next/siteSettings/components/SiteSettingsDetails/SiteSettingsDetails.tsx
+++ b/saleor/static/dashboard-next/siteSettings/components/SiteSettingsDetails/SiteSettingsDetails.tsx
@@ -34,9 +34,7 @@ const SiteSettingsDetails: React.StatelessComponent<
error={!!errors.name}
fullWidth
name="name"
- label={i18n.t("Name of your store", {
- context: "field label"
- })}
+ label={i18n.t("Name of your store")}
helperText={
errors.name ||
i18n.t("Name of your store is shown on tab in web browser")
@@ -50,10 +48,8 @@ const SiteSettingsDetails: React.StatelessComponent<
error={!!errors.domain}
fullWidth
name="domain"
- label={i18n.t("Domain", {
- context: "field label"
- })}
- helperText={errors.domain || i18n.t("Domain is your store URL")}
+ label={i18n.t("URL of your online store")}
+ helperText={errors.domain}
value={data.domain}
onChange={onChange}
/>
diff --git a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
index e4c22540f1..6acc14e7ec 100644
--- a/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
+++ b/saleor/static/dashboard-next/storybook/__snapshots__/Stories.test.ts.snap
@@ -40732,7 +40732,7 @@ exports[`Storyshots Views / Site settings / Page default 1`] = `
class="MuiFormLabel-root-id MuiFormLabel-filled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
data-shrink="true"
>
- Domain
+ URL of your online store
</label>
<div
class="MuiInput-root-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
@@ -40745,11 +40745,6 @@ exports[`Storyshots Views / Site settings / Page default 1`] = `
value="localhost:8000"
/>
</div>
- <p
- class="MuiFormHelperText-root-id MuiFormHelperText-filled-id"
- >
- Domain is your store URL
- </p>
</div>
<div
class="Component-spacer-id"
@@ -41025,7 +41020,7 @@ exports[`Storyshots Views / Site settings / Page form errors 1`] = `
class="MuiFormLabel-root-id MuiFormLabel-error-id MuiFormLabel-filled-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id MuiInputLabel-shrink-id"
data-shrink="true"
>
- Domain
+ URL of your online store
</label>
<div
class="MuiInput-root-id MuiInput-error-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
@@ -41319,7 +41314,7 @@ exports[`Storyshots Views / Site settings / Page loading 1`] = `
class="MuiFormLabel-root-id MuiInputLabel-root-id MuiInputLabel-formControl-id MuiInputLabel-animated-id"
data-shrink="false"
>
- Domain
+ URL of your online store
</label>
<div
class="MuiInput-root-id MuiInput-disabled-id MuiInput-fullWidth-id MuiInput-formControl-id MuiInput-underline-id"
@@ -41333,11 +41328,6 @@ exports[`Storyshots Views / Site settings / Page loading 1`] = `
value=""
/>
</div>
- <p
- class="MuiFormHelperText-root-id"
- >
- Domain is your store URL
- </p>
</div>
<div
class="Component-spacer-id"