Skip to content

Commit

Permalink
refactor: 사용하지 않은 코드 삭제 및 styleProps 구조 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
soi-ha committed Sep 12, 2024
1 parent 714db72 commit 89eda2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import {css} from '@emotion/react';

import {Theme} from '@theme/theme.type';
import {DepositToggleStylePropsWithTheme} from './DepositToggle.type';

interface Props {
theme: Theme;
isDeposit: boolean;
}

export const depositToggleStyle = ({theme, isDeposit}: Props) =>
export const depositToggleStyle = ({theme, isDeposit}: DepositToggleStylePropsWithTheme) =>
css({
display: `flex`,
flexDirection: 'column',
Expand All @@ -17,10 +12,6 @@ export const depositToggleStyle = ({theme, isDeposit}: Props) =>
cursor: 'pointer',
width: '4rem',

div: {
// zIndex: '5',
},

p: {
display: 'flex',
justifyContent: 'center',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
export interface DepositToggleStyleProps {}
import {Theme} from '@components/Design/theme/theme.type';

export interface DepositToggleStyleProps {
isDeposit: boolean;
}

export interface DepositToggleCustomProps {
isDeposit: boolean;
onToggle: () => void;
}

export interface DepositToggleStylePropsWithTheme extends DepositToggleStyleProps {
theme: Theme;
}

export type DepositToggleOptionProps = DepositToggleStyleProps & DepositToggleCustomProps;

export type DepositToggleProps = React.ComponentProps<'div'> & DepositToggleOptionProps;

0 comments on commit 89eda2e

Please sign in to comment.