From 3ff4c37a7a2c40340c17f9e6c1754444bce0f839 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 31 Oct 2023 16:00:45 +0100
Subject: refactor(components): rewrite Modal component

* add an optional close button
* add an icon prop
---
 .../molecules/tooltip/tooltip.stories.tsx          | 42 ----------------------
 1 file changed, 42 deletions(-)
 delete mode 100644 src/components/molecules/tooltip/tooltip.stories.tsx

(limited to 'src/components/molecules/tooltip/tooltip.stories.tsx')

diff --git a/src/components/molecules/tooltip/tooltip.stories.tsx b/src/components/molecules/tooltip/tooltip.stories.tsx
deleted file mode 100644
index 8a22a06..0000000
--- a/src/components/molecules/tooltip/tooltip.stories.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import { ComponentMeta, ComponentStory } from '@storybook/react';
-import { Tooltip } from './tooltip';
-import { useState } from 'react';
-
-/**
- * Switch - Storybook Meta
- */
-export default {
-  title: 'Molecules/Tooltip',
-  component: Tooltip,
-  args: {},
-  argTypes: {},
-} as ComponentMeta<typeof Tooltip>;
-
-const Template: ComponentStory<typeof Tooltip> = ({
-  isOpen,
-  onToggle: _onToggle,
-  ...args
-}) => {
-  const [isOpened, setIsOpened] = useState(isOpen);
-
-  const toggle = () => {
-    setIsOpened((prev) => !prev);
-  };
-
-  return (
-    <div style={{ position: 'relative' }}>
-      <Tooltip {...args} isOpen={isOpened} onToggle={toggle} />
-    </div>
-  );
-};
-
-/**
- * Tooltip Stories - Example
- */
-export const Example = Template.bind({});
-Example.args = {
-  children:
-    'Inventore natus dignissimos aut illum modi asperiores. Et voluptatibus delectus.',
-  heading: 'A title',
-  isOpen: false,
-};
-- 
cgit v1.2.3

