Fix storybook

This commit is contained in:
Joseph Garrone 2024-06-05 18:50:00 +02:00
parent ef9c933ca8
commit 4dad859c4d
4 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import Fallback from "../../dist/account"; import Fallback from "../../dist/account/Fallback";
import type { KcContext } from "./kcContext"; import type { KcContext } from "./kcContext";
import { useI18n } from "./i18n"; import { useI18n } from "./i18n";
import Template from "../../dist/account/Template"; import Template from "../../dist/account/Template";

View File

@ -1,5 +1,5 @@
import { createUseI18n } from "../../dist/account"; import { createUseI18n } from "../../dist/account";
export const { useI18n } = createUseI18n({}); export const { useI18n, ofTypeI18n } = createUseI18n({});
export type I18n = NonNullable<ReturnType<typeof useI18n>>; export type I18n = typeof ofTypeI18n;

View File

@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import Fallback from "../../dist/login"; import Fallback from "../../dist/login/Fallback";
import type { KcContext } from "./kcContext"; import type { KcContext } from "./kcContext";
import { useI18n } from "./i18n"; import { useI18n } from "./i18n";
import { useDownloadTerms } from "../../dist/login/lib/useDownloadTerms"; import { useDownloadTerms } from "../../dist/login/lib/useDownloadTerms";

View File

@ -1,5 +1,5 @@
import { createUseI18n } from "../../dist/login"; import { createUseI18n } from "../../dist/login";
export const { useI18n } = createUseI18n({}); export const { useI18n, ofTypeI18n } = createUseI18n({});
export type I18n = NonNullable<ReturnType<typeof useI18n>>; export type I18n = typeof ofTypeI18n;