Add storybook Error page #274
This commit is contained in:
parent
c5c25394fb
commit
08831fc31d
26
stories/login/Error.stories.tsx
Normal file
26
stories/login/Error.stories.tsx
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import React from "react";
|
||||||
|
import type { ComponentMeta } from "@storybook/react";
|
||||||
|
import { createPageStory } from "./createPageStory";
|
||||||
|
|
||||||
|
const pageId = "error.ftl";
|
||||||
|
|
||||||
|
const { PageStory } = createPageStory({ pageId });
|
||||||
|
|
||||||
|
const meta: ComponentMeta<any> = {
|
||||||
|
"title": `login/${pageId}`,
|
||||||
|
"component": PageStory,
|
||||||
|
"parameters": {
|
||||||
|
"viewMode": "story",
|
||||||
|
"previewTabs": {
|
||||||
|
"storybook/docs/panel": {
|
||||||
|
"hidden": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export default meta;
|
||||||
|
|
||||||
|
export const Default = () => <PageStory />;
|
||||||
|
|
||||||
|
export const WithAnotherMessage = () => <PageStory kcContext={{ "message": { "summary": "With another error message" } }} />;
|
Loading…
x
Reference in New Issue
Block a user