Skip to content

Commit

Permalink
Marked Locale as core
Browse files Browse the repository at this point in the history
  • Loading branch information
lancegliser committed Sep 23, 2024
1 parent aef2344 commit 5107b38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const meta: Meta<typeof FeatureAttributeLocaleField> = {
},
decorators: [
getFormProviderDecorator(),
getFeaturesAttributesContextDecorator({ purposes: ["core", "synthesis"] }),
getFeaturesAttributesContextDecorator({ purposes: ["core"] }),
],
// More on argTypes: https://storybook.js.org/docs/react/api/argtypes
argTypes: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const FeatureAttributeLocaleField: FC<
const { fieldTextProps, purposes } = useContext(FeaturesAttributesContext);
const form = useFormContext();

if (dataType !== "formatted_date_time" || !purposes.includes("synthesis")) {
if (dataType !== "formatted_date_time" || !purposes.includes("core")) {
return null;
}

Expand Down

0 comments on commit 5107b38

Please sign in to comment.