Update terms storybook
This commit is contained in:
parent
8cba3aae2c
commit
57f6f980cf
@ -14,10 +14,41 @@ export default meta;
|
|||||||
type Story = StoryObj<typeof meta>;
|
type Story = StoryObj<typeof meta>;
|
||||||
|
|
||||||
export const Default: Story = {
|
export const Default: Story = {
|
||||||
render: () => <KcPageStory />
|
render: () => (
|
||||||
|
<KcPageStory
|
||||||
|
kcContext={{
|
||||||
|
"x-keycloakify": {
|
||||||
|
realmMessageBundleTermsText: "<p>My terms in <strong>English</strong></p>"
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
export const French: Story = {
|
export const French: Story = {
|
||||||
|
render: () => (
|
||||||
|
<KcPageStory
|
||||||
|
kcContext={{
|
||||||
|
locale: {
|
||||||
|
currentLanguageTag: "fr"
|
||||||
|
},
|
||||||
|
"x-keycloakify": {
|
||||||
|
// cSpell: disable
|
||||||
|
realmMessageBundleTermsText: "<p>Mes terme en <strong>Français</strong></p>"
|
||||||
|
// cSpell: enable
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
// NOTE: Only works if using `useDownloadTerms()`
|
||||||
|
export const RenderedFromMarkdown: Story = {
|
||||||
|
render: () => <KcPageStory />
|
||||||
|
};
|
||||||
|
|
||||||
|
// NOTE: Only works if using `useDownloadTerms()`
|
||||||
|
export const RenderedFromMarkdownFrench: Story = {
|
||||||
render: () => (
|
render: () => (
|
||||||
<KcPageStory
|
<KcPageStory
|
||||||
kcContext={{
|
kcContext={{
|
||||||
@ -28,15 +59,3 @@ export const French: Story = {
|
|||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
export const Spanish: Story = {
|
|
||||||
render: () => (
|
|
||||||
<KcPageStory
|
|
||||||
kcContext={{
|
|
||||||
locale: {
|
|
||||||
currentLanguageTag: "es"
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
)
|
|
||||||
};
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user