Skip to content

Commit

Permalink
fix: 사용하지 않는 Button component의 isFull 속성 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Todari committed Sep 12, 2024
1 parent bf6aa31 commit 5ac606d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions client/src/components/Design/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ const animationSize = (size: ButtonSize) => {
};

export const Button: React.FC<ButtonProps> = forwardRef<HTMLButtonElement, ButtonProps>(function Button(
{variants = 'primary', size = 'medium', disabled, isFull = false, children, ...htmlProps}: ButtonProps,
{variants = 'primary', size = 'medium', disabled, children, ...htmlProps}: ButtonProps,
ref,
) {
const {theme} = useTheme();
return (
<button
css={buttonStyle({variants, size, theme, isFull})}
css={buttonStyle({variants, size, theme})}
ref={ref}
disabled={variants === 'loading' ? true : disabled}
{...htmlProps}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export interface ButtonStyleProps {
variants?: ButtonVariants;
size?: ButtonSize;
theme?: Theme;
isFull?: boolean;
}

export interface ButtonCustomProps {}
Expand Down
8 changes: 4 additions & 4 deletions client/src/components/NumberKeyboard/NumberKeyboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ export default function NumberKeyboard({type, maxNumber, onChange}: Props) {
gap: 1rem;
`}
>
<Button isFull={true} size="small" variants="tertiary" onClick={() => onClickAddAmount(10000)}>
<Button size="small" variants="tertiary" onClick={() => onClickAddAmount(10000)}>
+1만
</Button>
<Button isFull={true} size="small" variants="tertiary" onClick={() => onClickAddAmount(50000)}>
<Button size="small" variants="tertiary" onClick={() => onClickAddAmount(50000)}>
+5만
</Button>
<Button isFull={true} size="small" variants="tertiary" onClick={() => onClickAddAmount(100000)}>
<Button size="small" variants="tertiary" onClick={() => onClickAddAmount(100000)}>
+10만
</Button>
<Button isFull={true} size="small" variants="tertiary" onClick={onClickDeleteAll}>
<Button size="small" variants="tertiary" onClick={onClickDeleteAll}>
전체 삭제
</Button>
</div>
Expand Down

0 comments on commit 5ac606d

Please sign in to comment.