Skip to content

Commit

Permalink
style: BtnGray에 disabled 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyjoo committed Jul 2, 2024
1 parent 54d234c commit 34d6298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/BtnGray.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ type Prop = {
text: string;
action: () => void;
className?: string;
disabled?: boolean;
};

const BtnGray = ({ text, action, className }: Prop) => {
const BtnGray = ({ text, action, className = '', disabled = false }: Prop) => {
return (
<>
<button
Expand All @@ -15,6 +16,7 @@ const BtnGray = ({ text, action, className }: Prop) => {
`bg-slate-300 rounded-md px-5 text-white font-semibold h-[45px] text-center ${className}`
)}
onClick={action}
disabled={disabled}
>
{text}
</button>
Expand Down

0 comments on commit 34d6298

Please sign in to comment.