feat(storybook): progress on many more pages
This commit is contained in:
parent
dbe320b2fc
commit
1e1a638011
30 changed files with 1061 additions and 300 deletions
37
src/keycloak-theme/pages/Info.stories.tsx
Normal file
37
src/keycloak-theme/pages/Info.stories.tsx
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
import {ComponentMeta} from '@storybook/react';
|
||||
import KcApp from '../KcApp';
|
||||
import {template} from '../../../.storybook/util'
|
||||
|
||||
export default {
|
||||
kind: 'Page',
|
||||
title: 'Theme/Pages/Info',
|
||||
component: KcApp,
|
||||
parameters: {
|
||||
layout: 'fullscreen',
|
||||
},
|
||||
} as ComponentMeta<typeof KcApp>;
|
||||
|
||||
const bind = template('info.ftl');
|
||||
|
||||
export const Default = bind({
|
||||
messageHeader: 'Yo, get this:',
|
||||
message: {
|
||||
summary: 'You look good today'
|
||||
}
|
||||
})
|
||||
|
||||
export const WithLinkBack = bind({
|
||||
messageHeader: 'Yo, get this:',
|
||||
message: {
|
||||
summary: 'You look good today'
|
||||
},
|
||||
actionUri: undefined
|
||||
})
|
||||
|
||||
export const WithRequiredActions = bind({
|
||||
messageHeader: 'Yo, get this:',
|
||||
message: {
|
||||
summary: 'Before you can carry on, you need to do this: '
|
||||
},
|
||||
requiredActions: ["CONFIGURE_TOTP", "UPDATE_PROFILE", "VERIFY_EMAIL"]
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue