From a8cdcf92eb7dfa01d73fabf19e94e79679a7e6d2 Mon Sep 17 00:00:00 2001 From: p-sw Date: Mon, 3 Jun 2024 21:45:08 +0900 Subject: [PATCH] chore: remove switch story --- packages/react/stories/Switch.stories.tsx | 46 ----------------------- 1 file changed, 46 deletions(-) delete mode 100644 packages/react/stories/Switch.stories.tsx diff --git a/packages/react/stories/Switch.stories.tsx b/packages/react/stories/Switch.stories.tsx deleted file mode 100644 index 2c9b7ba..0000000 --- a/packages/react/stories/Switch.stories.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import React from "react"; -import { Label } from "../components/Label"; -import { Switch } from "../components/Switch"; -import { Toaster, useToast } from "../components/Toast"; - -export default { - title: "React/Switch", -}; - -export const Default = () => ; - -export const Disabled = () => ; - -export const DisabledChecked = () => ; - -export const WithLabel = () => ( - -); - -export const Controlled = () => { - const [checked, setChecked] = React.useState(false); - const { toast } = useToast(); - - React.useEffect(() => { - toast({ - title: "Switch changed", - description: `The switch was changed to ${checked ? "true" : "false"}`, - }); - }, [checked, toast]); - - return ( - <> - - - - ); -};