From 4dad859c4deea4f5280f825440371b7f8af1c42f Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Wed, 5 Jun 2024 18:50:00 +0200 Subject: [PATCH] Fix storybook --- stories/account/KcApp.tsx | 2 +- stories/account/i18n.ts | 4 ++-- stories/login/KcApp.tsx | 2 +- stories/login/i18n.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/stories/account/KcApp.tsx b/stories/account/KcApp.tsx index aee7cad3..6ea6b720 100644 --- a/stories/account/KcApp.tsx +++ b/stories/account/KcApp.tsx @@ -1,5 +1,5 @@ import React from "react"; -import Fallback from "../../dist/account"; +import Fallback from "../../dist/account/Fallback"; import type { KcContext } from "./kcContext"; import { useI18n } from "./i18n"; import Template from "../../dist/account/Template"; diff --git a/stories/account/i18n.ts b/stories/account/i18n.ts index 83ad89de..678cbf0b 100644 --- a/stories/account/i18n.ts +++ b/stories/account/i18n.ts @@ -1,5 +1,5 @@ import { createUseI18n } from "../../dist/account"; -export const { useI18n } = createUseI18n({}); +export const { useI18n, ofTypeI18n } = createUseI18n({}); -export type I18n = NonNullable>; +export type I18n = typeof ofTypeI18n; diff --git a/stories/login/KcApp.tsx b/stories/login/KcApp.tsx index 78be89d3..b7021de2 100644 --- a/stories/login/KcApp.tsx +++ b/stories/login/KcApp.tsx @@ -1,5 +1,5 @@ import React from "react"; -import Fallback from "../../dist/login"; +import Fallback from "../../dist/login/Fallback"; import type { KcContext } from "./kcContext"; import { useI18n } from "./i18n"; import { useDownloadTerms } from "../../dist/login/lib/useDownloadTerms"; diff --git a/stories/login/i18n.ts b/stories/login/i18n.ts index 313e1642..27a865ad 100644 --- a/stories/login/i18n.ts +++ b/stories/login/i18n.ts @@ -1,5 +1,5 @@ import { createUseI18n } from "../../dist/login"; -export const { useI18n } = createUseI18n({}); +export const { useI18n, ofTypeI18n } = createUseI18n({}); -export type I18n = NonNullable>; +export type I18n = typeof ofTypeI18n;