-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: [M3-6522-copy-tooltip] CopyTooltip: Styled component and v7…
… story (#9323) * Refactor: [M3-6522-copy-tooltip] Styled component and v7 story * Added changeset: MUI v5 Migration - Components > CopyTooltip * Refactor: [M3-6522-copy-tooltip] feedback - missing props
- Loading branch information
1 parent
d003eda
commit d63e70a
Showing
5 changed files
with
93 additions
and
92 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-9323-tech-stories-1687882441444.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 | ||
--- | ||
|
||
MUI v5 Migration - Components > CopyTooltip ([#9323](https://github.com/linode/manager/pull/9323)) |
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
43 changes: 0 additions & 43 deletions
43
packages/manager/src/components/CopyTooltip/CopyTooltip.stories.mdx
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
packages/manager/src/components/CopyTooltip/CopyTooltip.stories.tsx
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,26 @@ | ||
import * as React from 'react'; | ||
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip'; | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import type { CopyTooltipProps } from './CopyTooltip'; | ||
|
||
export const Default: StoryObj<CopyTooltipProps> = { | ||
render: (args) => <CopyTooltip {...args} />, | ||
}; | ||
|
||
export const WithCopyableText: StoryObj<CopyTooltipProps> = { | ||
render: (args) => <CopyTooltip {...args} copyableText text="Copyable Text" />, | ||
}; | ||
|
||
const meta: Meta<CopyTooltipProps> = { | ||
title: 'Components/Tooltip/Copy Tooltip', | ||
component: CopyTooltip, | ||
args: { | ||
text: 'Copyable Text', | ||
copyableText: false, | ||
onClickCallback: undefined, | ||
}, | ||
argTypes: { | ||
onClickCallback: { action: 'clicked, text copied' }, | ||
}, | ||
}; | ||
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