diff --git a/src/components/Dialog/Dialog.stories.tsx b/src/components/Dialog/Dialog.stories.tsx index 1aecfc88..6980a584 100644 --- a/src/components/Dialog/Dialog.stories.tsx +++ b/src/components/Dialog/Dialog.stories.tsx @@ -37,7 +37,9 @@ export const MediumFolder: Story = { {}}>폴더 이름1 {}}>폴더 이름2 {}}> - +
+ +
새 폴더 만들기
@@ -50,16 +52,22 @@ export const MediumProfile: Story = { <> - +
+ +
바로가나다라마바님 {}}> - +
+ +
계정 설정
{}}> - +
+ +
로그아웃
diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx index 8b3b9ca3..bcd31da9 100644 --- a/src/components/Dialog/index.tsx +++ b/src/components/Dialog/index.tsx @@ -1,16 +1,16 @@ import { createContext, type PropsWithChildren } from 'react'; -import { type RecipeVariants } from '@vanilla-extract/recipes'; import DialogButton from '@components/Dialog/components/DialogButton'; import DialogTitle from '@components/Dialog/components/DialogTitle'; import * as styles from '@components/Dialog/style.css'; interface DialogContextProps { - type?: 'small' | 'medium'; + type: 'small' | 'medium'; } -type DialogRootProps = RecipeVariants & - PropsWithChildren; +interface DialogRootProps extends PropsWithChildren { + type: 'small' | 'medium'; +} export const DialogContext = createContext(null); diff --git a/src/components/Dialog/style.css.ts b/src/components/Dialog/style.css.ts index 17fe7781..e5a1591d 100644 --- a/src/components/Dialog/style.css.ts +++ b/src/components/Dialog/style.css.ts @@ -123,8 +123,9 @@ export const iconRegularText = style([ }, ]); -export const addIcon = style({ +export const icon = style({ position: 'absolute', + marginTop: '2px', }); export const circle = style({ diff --git a/src/components/Icon/index.tsx b/src/components/Icon/index.tsx index 9f85329d..75858b66 100644 --- a/src/components/Icon/index.tsx +++ b/src/components/Icon/index.tsx @@ -2,29 +2,15 @@ import { iconFactory, type Icons } from '../../constants/icon'; interface IconProps { icon: Icons; - className?: string; color?: string; width?: number; height?: number; } -const Icon = ({ - icon, - className, - color, - width = 24, - height = 24, -}: IconProps) => { +const Icon = ({ icon, color, width = 24, height = 24 }: IconProps) => { const SvgIcon = iconFactory[icon]; - return ( - - ); + return ; }; export default Icon;