[APP-2160] Build new standard.site link card UI (#10468)

Co-authored-by: vineyardbovines <spencer@thepope.dev>
Co-authored-by: Eric Bailey <git@esb.lol>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Spence Pope
2026-05-22 18:36:06 -04:00
committed by GitHub
parent 6159cd7777
commit 5db37729bb
28 changed files with 1265 additions and 38 deletions
+5 -1
View File
@@ -1,6 +1,7 @@
import {memo, useCallback, useMemo, useState} from 'react'
import {
Image as RNImage,
type ImageStyle,
Pressable,
type StyleProp,
StyleSheet,
@@ -76,6 +77,7 @@ interface UserAvatarProps extends BaseUserAvatarProps {
noBorder?: boolean
onLoad?: () => void
style?: StyleProp<ViewStyle>
extraAviStyle?: ImageStyle
}
interface EditableUserAvatarProps extends BaseUserAvatarProps {
@@ -224,6 +226,7 @@ let UserAvatar = ({
live,
hideLiveBadge,
noBorder,
extraAviStyle,
}: UserAvatarProps): React.ReactNode => {
const t = useTheme()
const finalShape = overrideShape ?? (type === 'user' ? 'circle' : 'square')
@@ -241,8 +244,9 @@ let UserAvatar = ({
height: size,
borderRadius,
backgroundColor: t.palette.contrast_25,
...extraAviStyle,
}
}, [finalShape, size, t])
}, [finalShape, size, t, extraAviStyle])
const borderStyle = useMemo(() => {
return [