Setup a very basic storybook
This commit is contained in:
parent
8c8eef22ce
commit
045c20844f
15 changed files with 5915 additions and 391 deletions
|
|
@ -1,17 +1,20 @@
|
|||
import { getKcContext } from "keycloakify/account";
|
||||
import { createGetKcContext } from "keycloakify/account";
|
||||
|
||||
export type KcContextExtension =
|
||||
| { pageId: "my-extra-page-1.ftl"; }
|
||||
| { pageId: "my-extra-page-2.ftl"; someCustomValue: string; };
|
||||
|
||||
export const { kcContext } = getKcContext<KcContextExtension>({
|
||||
//mockPageId: "password.ftl",
|
||||
export const { getKcContext } = createGetKcContext<KcContextExtension>({
|
||||
mockData: [
|
||||
{
|
||||
pageId: "my-extra-page-2.ftl",
|
||||
pageId: "my-extra-page-2.ftl",
|
||||
someCustomValue: "foo bar"
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
export type KcContext = NonNullable<typeof kcContext>;
|
||||
export const { kcContext } = getKcContext({
|
||||
//mockPageId: "password.ftl",
|
||||
});
|
||||
|
||||
export type KcContext = NonNullable<typeof kcContext>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue