From 53fa294d1e0d72a3f53c45d25440027448e00904 Mon Sep 17 00:00:00 2001 From: ghdtjgus76 Date: Wed, 12 Jun 2024 18:45:39 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20RadioContext=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?=EC=82=AC=ED=95=AD=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wow-docs/app/page.tsx | 13 ++----------- .../{RadioContext.tsx => RadioContext.ts} | 2 +- packages/wow-ui/src/components/RadioGroup/index.ts | 2 -- 3 files changed, 3 insertions(+), 14 deletions(-) rename packages/wow-ui/src/components/RadioGroup/{RadioContext.tsx => RadioContext.ts} (98%) delete mode 100644 packages/wow-ui/src/components/RadioGroup/index.ts diff --git a/apps/wow-docs/app/page.tsx b/apps/wow-docs/app/page.tsx index 4536f4cc..41023bfb 100644 --- a/apps/wow-docs/app/page.tsx +++ b/apps/wow-docs/app/page.tsx @@ -1,7 +1,7 @@ -import { css } from "@styled-system/css/css"; import Checkbox from "wowds-ui/Checkbox"; import Chip from "wowds-ui/Chip"; -import { RadioButton, RadioGroup } from "wowds-ui/RadioGroup"; +import RadioButton from "wowds-ui/RadioButton"; +import RadioGroup from "wowds-ui/RadioGroup"; import Switch from "wowds-ui/Switch"; const Home = () => { @@ -14,15 +14,6 @@ const Home = () => { -
-

docs

-
); }; diff --git a/packages/wow-ui/src/components/RadioGroup/RadioContext.tsx b/packages/wow-ui/src/components/RadioGroup/RadioContext.ts similarity index 98% rename from packages/wow-ui/src/components/RadioGroup/RadioContext.tsx rename to packages/wow-ui/src/components/RadioGroup/RadioContext.ts index 4cd243cc..924ef818 100644 --- a/packages/wow-ui/src/components/RadioGroup/RadioContext.tsx +++ b/packages/wow-ui/src/components/RadioGroup/RadioContext.ts @@ -11,7 +11,7 @@ import { createContext } from "react"; */ export interface RadioContextProps { - name: string; + name?: string; value?: string; onChange?: (event: ChangeEvent) => void; disabled?: boolean; diff --git a/packages/wow-ui/src/components/RadioGroup/index.ts b/packages/wow-ui/src/components/RadioGroup/index.ts deleted file mode 100644 index ebf2b348..00000000 --- a/packages/wow-ui/src/components/RadioGroup/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { default as RadioButton } from "./RadioButton"; -export { default as RadioGroup } from "./RadioGroup";