Skip to content

Commit

Permalink
Merge pull request #36 from Mogazoa-team20/hotfix/v1
Browse files Browse the repository at this point in the history
hotfix: 인덱스 page에 불필요한 요소 삭제 및 Button컴포넌트에 HTML요소 추가 (#3)
  • Loading branch information
yeeZinu authored May 31, 2024
2 parents 7d8c0c9 + fc4abfc commit 06b575c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
14 changes: 1 addition & 13 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
import Button from "@/components/Button/Button";

export default function Home() {
return (
<div>
<Button
styleType='primary'
disabled
className='addWidth'
>
일단 버튼임
</Button>
</div>
);
return <div>Hello</div>;
}
3 changes: 2 additions & 1 deletion src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client";

import { ButtonHTMLAttributes } from "react";
import cn from "@/utils/classNames";
import styles from "./Button.module.scss";

Expand All @@ -8,7 +9,7 @@ type ButtonProps = {
styleType: "primary" | "secondary" | "tertiary";
disabled: boolean;
className: string;
};
} & ButtonHTMLAttributes<HTMLButtonElement>;

export default function Button({ children, styleType, disabled = false, className, ...rest }: ButtonProps) {
return (
Expand Down

0 comments on commit 06b575c

Please sign in to comment.