Skip to content

Commit

Permalink
Merge pull request #68 from hanaro-on-and-on/sytle/#67
Browse files Browse the repository at this point in the history
style/#67 BtnGray에 disabled 추가
  • Loading branch information
jennyjoo authored Jul 2, 2024
2 parents 54d234c + 34d6298 commit 69bb60f
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 69bb60f

Please sign in to comment.