Skip to content

Commit

Permalink
feat: change switch color in bounty creation form
Browse files Browse the repository at this point in the history
  • Loading branch information
whtsupbab3 committed Jan 6, 2025
1 parent a04b92a commit 7dccc7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/global/FormBounty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ export default function FormBounty({
checked={isSoloBounty}
onClick={() => setIsSoloBounty(!isSoloBounty)}
inputProps={{ 'aria-label': 'controlled' }}
sx={{
'& .MuiSwitch-thumb': {
color: isSoloBounty ? '#F15E5F' : 'default',
},
'& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': {
backgroundColor: '#fff',
},
}}
/>
</div>
<div className=' text-xs'>
Expand Down

0 comments on commit 7dccc7b

Please sign in to comment.