Skip to content

Commit

Permalink
코드리뷰 받은 버튼타입 추가하기(text 프롭스를 유연하게 받아보는 방법은 반영까지 시간이 좀 더 필요할 것 같습니다)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimsoyoung96 committed Dec 9, 2024
1 parent c81e548 commit d60f178
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Button.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import './Button.css';

const Button = ({ text, type }) => {
return <button className={`Button Button_${type}`}>{text}</button>;
return (
<button type={type} className={`Button Button_${type}`}>
{text}
</button>
);
};

export default Button;

0 comments on commit d60f178

Please sign in to comment.