Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
chore: language switcher included in navigation storybook for HK, ROW
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuzhy-Deriv committed Dec 1, 2023
1 parent 9b2b9e5 commit d39bd7d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react';
import MainNavigation from '.';
import { LanguageProvider, langItemsHK } from '@deriv-com/providers';

const meta = {
title: 'Features/Navigation/Main HK',
Expand All @@ -17,6 +18,17 @@ const meta = {
export default meta;
type Story = StoryObj<typeof meta>;

export const Default: Story = {
const Template: Story = {
render: ({ ...args }) => {
return (
<LanguageProvider langItems={langItemsHK}>
<MainNavigation />
</LanguageProvider>
);
},
};

export const Default = {
...Template,
args: {},
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react';
import MainRowNavigation from './man-navigation.row';
import { LanguageProvider, langItemsROW } from '@deriv-com/providers';

const meta = {
title: 'Features/Navigation/Main Row',
Expand All @@ -17,6 +18,17 @@ const meta = {
export default meta;
type Story = StoryObj<typeof meta>;

export const Default: Story = {
const Template: Story = {
render: ({ ...args }) => {
return (
<LanguageProvider langItems={langItemsROW}>
<MainRowNavigation />
</LanguageProvider>
);
},
};

export const Default = {
...Template,
args: {},
};

0 comments on commit d39bd7d

Please sign in to comment.