From 9492414d4ae94045eff4e06f636529bc0e71cb06 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 20 Oct 2023 17:01:37 +0200
Subject: 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.
---
 src/components/atoms/layout/copyright.stories.tsx | 58 -----------------------
 1 file changed, 58 deletions(-)
 delete mode 100644 src/components/atoms/layout/copyright.stories.tsx

(limited to 'src/components/atoms/layout/copyright.stories.tsx')

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',
-};
-- 
cgit v1.2.3

