Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Mar 30, 2024
1 parent 6065b8a commit 727b3e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ee/tabby-ui/app/(dashboard)/profile/components/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { toast } from 'sonner'
import { graphql } from '@/lib/gql/generates'
import { useMe } from '@/lib/hooks/use-me'
import { useMutation } from '@/lib/tabby/gql'
import { delay, cn } from '@/lib/utils'

import { cn, delay } from '@/lib/utils'
import { Button } from '@/components/ui/button'
import { IconCloudUpload, IconSpinner } from '@/components/ui/icons'
import { Separator } from '@/components/ui/separator'
Expand Down Expand Up @@ -68,7 +67,7 @@ export const Avatar = () => {
toast.success('Successfully updated your profile picture!')
await delay(200)
}

setUploadedImgString('')
setIsSubmitting(false)
}
Expand Down Expand Up @@ -97,9 +96,10 @@ export const Avatar = () => {
/>
)}
<UserAvatar
className={cn("relative h-16 w-16 border", {
className={cn('relative h-16 w-16 border', {
'opacity-0': uploadedImgString
})} />
})}
/>
</div>

<Separator />
Expand Down

0 comments on commit 727b3e6

Please sign in to comment.