Skip to content

Commit

Permalink
Added missing help text
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-keller committed Jul 12, 2024
1 parent 61c5737 commit 93f89c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "contentful-better-slugs-app",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"author": {
"name": "Paulo Gomes",
Expand Down
6 changes: 5 additions & 1 deletion src/locations/Field.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { FieldAppSDK } from "@contentful/app-sdk";
import {
Button,
HelpText,
IconButton,
Note,
Stack,
Expand Down Expand Up @@ -51,7 +52,8 @@ const Field = () => {
const {
showWebsiteUrl = true,
showPreviewUrl = true,
instancePathPrefix = ""
instancePathPrefix = "",
helpText = ""
} = sdk.parameters.instance;

if (instancePathPrefix) {
Expand Down Expand Up @@ -380,6 +382,8 @@ const Field = () => {
{`${overridePathPrefix}/${value}`}
</TextLink>
)}

{helpText && <HelpText>{helpText}</HelpText>}
</Stack>
);
};
Expand Down

0 comments on commit 93f89c7

Please sign in to comment.