Skip to content

Commit

Permalink
refactor: #7 - 파일명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
권기범 authored and 권기범 committed Oct 31, 2023
1 parent 4cf4906 commit 0735711
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/(routes)/bomiTest/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// 컴포넌트 테스트 코드입니다
// import Button from '@/components/common/Button/Button'
import Button from '@/components/common/Button/Button'
import { PencilSquareIcon } from '@heroicons/react/24/outline'
import { HeartIcon } from '@heroicons/react/24/outline'
import { PlusSmallIcon } from '@heroicons/react/24/solid'

const TestPage = () => {
return (
<>
{/* <div className="m-1">
<div className="m-1">
<Button className="button button-md button-white">흰색 버튼</Button>
</div>
<div className="m-1">
Expand Down Expand Up @@ -54,7 +54,7 @@ const TestPage = () => {
<HeartIcon className="h-4 w-4" />
Button
</Button>
</div> */}
</div>
</>
)
}
Expand Down
Empty file removed src/components/common/.gitkeep
Empty file.
29 changes: 29 additions & 0 deletions src/components/common/Button/Button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
interface ButtonProps {
children?: React.ReactNode
type?: 'button' | 'reset' | 'submit' | undefined
className?: string
style?: React.CSSProperties
onClick?: (_e?: React.MouseEvent<HTMLButtonElement>) => void
}

const Button = ({
children,
type = 'button',
className,
style,
onClick,
...rest
}: ButtonProps) => {
return (
<button
onClick={onClick}
className={className}
style={{ ...style }}
type={type}
{...rest}>
{children}
</button>
)
}

export default Button

0 comments on commit 0735711

Please sign in to comment.