diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/ProfileCard.tsx | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx index 4e135c8a2..99a68083a 100644 --- a/src/components/ProfileCard.tsx +++ b/src/components/ProfileCard.tsx @@ -23,9 +23,9 @@ import {PreviewableUserAvatar, UserAvatar} from '#/view/com/util/UserAvatar' import { atoms as a, platform, - TextStyleProp, + type TextStyleProp, useTheme, - ViewStyleProp, + type ViewStyleProp, } from '#/alf' import { Button, @@ -351,6 +351,24 @@ export function NameAndHandlePlaceholder() { ) } +export function NamePlaceholder({style}: ViewStyleProp) { + const t = useTheme() + + return ( + <View + style={[ + a.rounded_xs, + t.atoms.bg_contrast_25, + { + width: '60%', + height: 14, + }, + style, + ]} + /> + ) +} + export function Description({ profile: profileUnshadowed, numberOfLines = 3, |