-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9948 from abailly-akamai/M3-7518
refactor: [M3-7509, M3-7518] TopMenu and TagsList v7 Stories
- Loading branch information
Showing
11 changed files
with
56 additions
and
206 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-9948-tech-stories-1701381411461.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Tech Stories | ||
--- | ||
|
||
TopMenu and TagsList Storybook v7 Stories ([#9948](https://github.com/linode/manager/pull/9948)) |
2 changes: 1 addition & 1 deletion
2
packages/manager/src/components/ColorPalette/ColorPalette.stories.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 0 additions & 45 deletions
45
packages/manager/src/components/ImageSelect/imageIcons.stories.mdx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as React from 'react'; | ||
|
||
import { Tags } from './Tags'; | ||
|
||
import type { TagsProps } from './Tags'; | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
export const Default: StoryObj<TagsProps> = { | ||
render: (args) => <Tags {...args} />, | ||
}; | ||
|
||
const meta: Meta<TagsProps> = { | ||
args: { | ||
tags: ['tag1', 'tag2', 'tag3', 'tag4', 'tag5'], | ||
}, | ||
component: Tags, | ||
title: 'Components/Tags/Tags List', | ||
}; | ||
export default meta; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
packages/manager/src/features/TopMenu/NavigationIcons.stories.mdx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as React from 'react'; | ||
|
||
import { TopMenu } from './TopMenu'; | ||
|
||
import type { TopMenuProps } from './TopMenu'; | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
export const Default: StoryObj<TopMenuProps> = { | ||
render: (args) => <TopMenu {...args} />, | ||
}; | ||
|
||
const meta: Meta<TopMenuProps> = { | ||
args: { | ||
desktopMenuToggle: () => null, | ||
isSideMenuOpen: false, | ||
openSideMenu: () => null, | ||
username: 'User 1', | ||
}, | ||
component: TopMenu, | ||
title: 'Features/Navigation/Top Menu', | ||
}; | ||
export default meta; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters