Toggle: use bg-primary-600 when checked

This commit is contained in:
Alex Gleason 2023-03-31 11:17:06 -05:00
parent e38b5fbfd3
commit 79a8cd6b13
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -17,7 +17,9 @@ const Toggle: React.FC<IToggle> = ({ id, size = 'md', checked, onChange, require
return (
<button
className={clsx('flex-none rounded-full bg-gray-500', {
className={clsx('flex-none rounded-full', {
'bg-gray-500': !checked,
'bg-primary-600': checked,
'w-9 p-0.5': size === 'sm',
'w-11 p-0.5': size === 'md',
})}