Skip to content

Commit

Permalink
Removed text with the toggle switch component (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
ib-inu authored Nov 15, 2024
1 parent bf4fd67 commit 495aa65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/ui/Switch/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ const Switch = ({ children, customRootClass = '', className = '', color = '', de
return (
<>
<input type='checkbox' className={`${rootClass}`} {...props} checked= {isChecked}/>
<button type="button" onClick={handleChecked} role="switch">
{isChecked ? 'on' : 'off'}</button>
<button type="button" onClick={handleChecked} role="switch"></button>
</>
);
};
Expand Down

0 comments on commit 495aa65

Please sign in to comment.