Skip to content

Commit

Permalink
fix: update button actions and icons in UserMenu for better UX
Browse files Browse the repository at this point in the history
  • Loading branch information
tomast1337 committed Jan 1, 2025
1 parent 765fce8 commit e5c6301
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions web/src/modules/shared/components/layout/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,25 @@ export const UserMenu = ({ userData }: { userData: LoggedUserData }) => {
},
})}
/>
<button onClick={() => setIsEditingUsername(false)}>
<button
className='ml-1'
disabled={isSubmitting}
type='submit'
>
<FontAwesomeIcon
icon={faClose}
icon={faCheck}
size='lg'
className='text-zinc-400 hover:text-red-500'
className='text-zinc-400 hover:text-green-500'
/>
</button>
<button disabled={isSubmitting} type='submit'>
<button
className='ml-1'
onClick={() => setIsEditingUsername(false)}
>
<FontAwesomeIcon
icon={faCheck}
icon={faClose}
size='lg'
className='text-zinc-400 hover:text-green-500'
className='text-zinc-400 hover:text-red-500'
/>
</button>
</form>
Expand Down

0 comments on commit e5c6301

Please sign in to comment.