Skip to content

Commit de41714

Browse files
committed
chore: Improve helper text in Strapi config form
1 parent 2b01ff7 commit de41714

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

apps/cms-v2/src/modules/providers/strapi/strapi-config-form.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const PureForm = ({ defaultValues, onSubmit, onDelete }: PureFormProps) => {
3737
control={control}
3838
name="configName"
3939
label="Configuration name"
40-
helperText="Meaningful name that will help you understand it later. E.g. 'staging' or 'prod' "
40+
helperText={`Meaningful name that will help you understand it later, e.g. "staging" or "prod".`}
4141
/>
4242

4343
<Box display={"grid"} gap={4} marginY={4}>
@@ -47,14 +47,14 @@ const PureForm = ({ defaultValues, onSubmit, onDelete }: PureFormProps) => {
4747
control={control}
4848
name="authToken"
4949
label="Auth token"
50-
helperText="Token with full permissions for the content type you want Saleor to store product."
50+
helperText="Token with full permissions for the content type you want Saleor to store product in."
5151
/>
5252
<Input
5353
required
5454
control={control}
5555
name="url"
5656
label="API Url"
57-
helperText="Base api URL, usually without /api suffix"
57+
helperText={`Base API URL, usually without the "/api" suffix.`}
5858
placeholder="https://your-strapi-url.com"
5959
/>
6060
</Box>
@@ -65,15 +65,15 @@ const PureForm = ({ defaultValues, onSubmit, onDelete }: PureFormProps) => {
6565
name="itemType"
6666
control={control}
6767
placeholder="saleor-products"
68-
helperText="Plural name of the content type you want Saleor to send product to. E.g. 'products' or 'product-variants'"
68+
helperText={`Plural name of the content type you want Saleor to send product to, e.g. "products" or "product-variants".`}
6969
/>
7070

7171
<Text as="p" variant="heading" size="small">
72-
Map fields from Saleor to your Strapi schema.
72+
Map fields from Saleor to your Strapi schema
7373
</Text>
7474
<Text as="p" marginTop={2} marginBottom={4}>
75-
All fields should be type of <Text variant="bodyStrong">Text</Text>. Channels should be
76-
type of <Text variant="bodyStrong">JSON</Text>.
75+
All fields should be of type <Text variant="bodyStrong">Text</Text>. Channels should be of
76+
type <Text variant="bodyStrong">JSON</Text>.
7777
</Text>
7878
<Box
7979
marginBottom={4}
@@ -85,7 +85,7 @@ const PureForm = ({ defaultValues, onSubmit, onDelete }: PureFormProps) => {
8585
padding={2}
8686
>
8787
<Text variant="caption">Saleor Field</Text>
88-
<Text variant="caption">Strapi field</Text>
88+
<Text variant="caption">Strapi Field</Text>
8989
</Box>
9090
{SaleorProviderFieldsMappingKeys.map((saleorField) => (
9191
// todo extract this table to component

0 commit comments

Comments
 (0)