Skip to content

Commit

Permalink
Set styles for disabled buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
2093ab authored and derug committed Oct 9, 2023
1 parent 628f2c9 commit cf7d84a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/ArchiveButton/ArchiveButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ const ArchiveButton = styled(
const customButtonRef = useRef(null);
if (disabled) {
return (
<CustomButton ref={customButtonRef} disabled={disabled}>
<CustomButton
className={className}
ref={customButtonRef}
disabled={disabled}
>
{children}
</CustomButton>
);
Expand Down

0 comments on commit cf7d84a

Please sign in to comment.