diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-10-20 17:01:37 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-11 18:14:41 +0100 |
| commit | 9492414d4ae94045eff4e06f636529bc0e71cb06 (patch) | |
| tree | 7f268e6b62ee89128abd0581301265dc64f147d5 /src/components/atoms/layout/copyright.stories.tsx | |
| parent | c6f6f8f895e68f2d85ca681997ef613d982bac14 (diff) | |
refactor(components): rewrite Copyright component
* remove `icon` prop (it is confusing because a copyright should have
the copyright symbol, the license is not part of the copyright)
* reorganize copyright informations
I also updated the CC BY SA icon because the elements was in the wrong
order.
Diffstat (limited to 'src/components/atoms/layout/copyright.stories.tsx')
| -rw-r--r-- | src/components/atoms/layout/copyright.stories.tsx | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/components/atoms/layout/copyright.stories.tsx b/src/components/atoms/layout/copyright.stories.tsx deleted file mode 100644 index 58d1b1e..0000000 --- a/src/components/atoms/layout/copyright.stories.tsx +++ /dev/null @@ -1,58 +0,0 @@ -import type { ComponentMeta, ComponentStory } from '@storybook/react'; -import { Icon } from '../images/icons'; -import { Copyright as CopyrightComponent } from './copyright'; - -/** - * Copyright - Storybook Meta - */ -export default { - title: 'Atoms/Layout', - component: CopyrightComponent, - argTypes: { - dates: { - description: 'The copyright dates.', - type: { - name: 'object', - required: true, - value: {}, - }, - }, - icon: { - control: { - type: null, - }, - description: 'The copyright icon.', - type: { - name: 'string', - required: true, - }, - }, - owner: { - control: { - type: 'text', - }, - description: 'The copyright owner', - type: { - name: 'string', - required: true, - }, - }, - }, -} as ComponentMeta<typeof CopyrightComponent>; - -const Template: ComponentStory<typeof CopyrightComponent> = (args) => ( - <CopyrightComponent {...args} /> -); - -/** - * Layout Stories - Copyright - */ -export const Copyright = Template.bind({}); -Copyright.args = { - dates: { - start: '2012', - end: '2022', - }, - icon: <Icon shape="cc-by-sa" />, - owner: 'Your name', -}; |
