Update to the latest APIs

This commit is contained in:
Paul Frazee 2022-11-04 17:39:54 -05:00
parent 8ae6e67eea
commit f333a90fab
165 changed files with 2963 additions and 4747 deletions

View file

@ -12,14 +12,14 @@ const GRADIENTS = [
export function UserAvatar({
size,
displayName,
name,
handle,
}: {
size: number
displayName: string | undefined
name: string
handle: string
}) {
const initials = getInitials(displayName || name)
const gi = cyrb53(name) % GRADIENTS.length
const initials = getInitials(displayName || handle)
const gi = cyrb53(handle) % GRADIENTS.length
return (
<Svg width={size} height={size} viewBox="0 0 100 100">
<Defs>