Skip to content

Commit

Permalink
Removing Box from GradientAvatar
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Jan 17, 2025
1 parent 4272e30 commit 827516e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/GradientAvatar/GradientAvatar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { cva, VariantProps } from 'class-variance-authority'
import { Fragment, memo, useId } from 'react'

import { Box, BoxProps } from '~/components/Box'
import { cn } from '~/utils'

const MOD = 1000
Expand All @@ -25,12 +24,12 @@ const avatarVariants = cva(['flex-shrink-0 rounded-full overflow-hidden'], {
},
})

type GradientAvatarProps = {
interface GradientAvatarProps extends VariantProps<typeof avatarVariants> {
address: string
initials?: string
complexity?: number
} & VariantProps<typeof avatarVariants> &
BoxProps
className?: string
}

interface HashState {
a: number
Expand Down Expand Up @@ -117,8 +116,7 @@ export const GradientAvatar = memo((props: GradientAvatarProps) => {
const id = useId()

return (
<Box
as="svg"
<svg
className={cn(avatarVariants({ size }), className)}
viewBox={`0 0 ${SIZE} ${SIZE}`}
version="1.1"
Expand Down Expand Up @@ -219,6 +217,6 @@ export const GradientAvatar = memo((props: GradientAvatarProps) => {
</text>
)} */}
</g>
</Box>
</svg>
)
})

0 comments on commit 827516e

Please sign in to comment.