Skip to content

Commit 8a19269

Browse files
refactor(switch): move component and story file from tailwind folder
1 parent 26d23cd commit 8a19269

File tree

4 files changed

+3
-40
lines changed

4 files changed

+3
-40
lines changed

src/components/BaseStories/Switch.stories.tsx

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/components/ProductTable/FilterInputs/SwitchFilterInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { IconType } from "react-icons"
33

44
import { FilterInputState } from "@/lib/types"
55

6-
import Switch from "@/../tailwind/ui/Switch"
6+
import Switch from "@/components/ui/Switch"
77

88
interface SwitchFilterInputProps {
99
Icon?: IconType

tailwind/ui/Switch.tsx renamed to src/components/ui/Switch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as SwitchPrimitives from "@radix-ui/react-switch"
33

44
import { cn } from "@/lib/utils/cn"
55

6-
import { commonControlClasses } from "../../src/components/ui/checkbox"
6+
import { commonControlClasses } from "./checkbox"
77

88
const Switch = React.forwardRef<
99
React.ElementRef<typeof SwitchPrimitives.Root>,

tailwind/ui/__stories__/Switch.stories.tsx renamed to src/components/ui/__stories__/Switch.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Meta, type StoryObj } from "@storybook/react"
44
import SwitchComponent from "../Switch"
55

66
const meta = {
7-
title: "Atoms / Form / ShadCN Switch",
7+
title: "Atoms / Form / Switch",
88
component: SwitchComponent,
99
} satisfies Meta<typeof SwitchComponent>
1010

0 commit comments

Comments
 (0)