fix(storybook): fix storybook rendering with i18n library
This commit is contained in:
@@ -34,6 +34,12 @@ const meta = {
|
|||||||
title: 'owncast/Layout/Main',
|
title: 'owncast/Layout/Main',
|
||||||
parameters: {
|
parameters: {
|
||||||
layout: 'fullscreen',
|
layout: 'fullscreen',
|
||||||
|
nextjs: {
|
||||||
|
appDirectory: true,
|
||||||
|
navigation: {
|
||||||
|
searchParams: {},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
} satisfies Meta<typeof Main>;
|
} satisfies Meta<typeof Main>;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,14 @@ import { Footer } from './Footer';
|
|||||||
const meta = {
|
const meta = {
|
||||||
title: 'owncast/Layout/Footer',
|
title: 'owncast/Layout/Footer',
|
||||||
component: Footer,
|
component: Footer,
|
||||||
parameters: {},
|
parameters: {
|
||||||
|
nextjs: {
|
||||||
|
appDirectory: true,
|
||||||
|
navigation: {
|
||||||
|
searchParams: {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
} satisfies Meta<typeof Footer>;
|
} satisfies Meta<typeof Footer>;
|
||||||
|
|
||||||
export default meta;
|
export default meta;
|
||||||
|
|||||||
@@ -7,6 +7,12 @@ const meta = {
|
|||||||
component: Header,
|
component: Header,
|
||||||
parameters: {
|
parameters: {
|
||||||
chromatic: { diffThreshold: 0.75 },
|
chromatic: { diffThreshold: 0.75 },
|
||||||
|
nextjs: {
|
||||||
|
appDirectory: true,
|
||||||
|
navigation: {
|
||||||
|
searchParams: {},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
} satisfies Meta<typeof Header>;
|
} satisfies Meta<typeof Header>;
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,12 @@ const meta = {
|
|||||||
component: `When the stream is offline the player should be replaced by this banner that can support custom text and notify actions.`,
|
component: `When the stream is offline the player should be replaced by this banner that can support custom text and notify actions.`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
nextjs: {
|
||||||
|
appDirectory: true,
|
||||||
|
navigation: {
|
||||||
|
searchParams: {},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
} satisfies Meta<typeof OfflineBanner>;
|
} satisfies Meta<typeof OfflineBanner>;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user