Complete migration of storybook from @lordvlad #274

This commit is contained in:
Joseph Garrone
2024-06-02 22:29:53 +02:00
parent 96a88fe865
commit f55a934939
6 changed files with 197 additions and 1 deletions

View File

@ -25,9 +25,64 @@ export const Default = () => (
<PageStory
kcContext={{
message: {
summary: "This is the server message",
summary: "Server info message",
type: "info"
}
}}
/>
);
export const WithWarning = () => (
<PageStory
kcContext={{
message: {
summary: "Server warning message",
type: "warning"
}
}}
/>
);
export const WithError = () => (
<PageStory
kcContext={{
message: {
summary: "Server error message",
type: "error"
}
}}
/>
);
export const WithSuccess = () => (
<PageStory
kcContext={{
message: {
summary: "Server success message",
type: "success"
}
}}
/>
);
export const WithLinkBack = () => (
<PageStory
kcContext={{
message: {
summary: "Server message"
},
actionUri: undefined
}}
/>
);
export const WithRequiredActions = () => (
<PageStory
kcContext={{
message: {
summary: "Server message"
},
requiredActions: ["CONFIGURE_TOTP", "UPDATE_PROFILE", "VERIFY_EMAIL"]
}}
/>
);