fix(storybook): fix storybook rendering with i18n library

This commit is contained in:
Gabe Kangas
2025-01-14 21:19:23 -08:00
parent e02f6dbc20
commit 70282761d3
4 changed files with 26 additions and 1 deletions

View File

@@ -34,6 +34,12 @@ const meta = {
title: 'owncast/Layout/Main',
parameters: {
layout: 'fullscreen',
nextjs: {
appDirectory: true,
navigation: {
searchParams: {},
},
},
},
} satisfies Meta<typeof Main>;

View File

@@ -5,7 +5,14 @@ import { Footer } from './Footer';
const meta = {
title: 'owncast/Layout/Footer',
component: Footer,
parameters: {},
parameters: {
nextjs: {
appDirectory: true,
navigation: {
searchParams: {},
},
},
},
} satisfies Meta<typeof Footer>;
export default meta;

View File

@@ -7,6 +7,12 @@ const meta = {
component: Header,
parameters: {
chromatic: { diffThreshold: 0.75 },
nextjs: {
appDirectory: true,
navigation: {
searchParams: {},
},
},
},
} satisfies Meta<typeof Header>;

View File

@@ -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.`,
},
},
nextjs: {
appDirectory: true,
navigation: {
searchParams: {},
},
},
},
} satisfies Meta<typeof OfflineBanner>;