diff options
Diffstat (limited to 'src/screens/Profile/Header/index.tsx')
-rw-r--r-- | src/screens/Profile/Header/index.tsx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/screens/Profile/Header/index.tsx b/src/screens/Profile/Header/index.tsx index c7ef34b70..cdb0667d0 100644 --- a/src/screens/Profile/Header/index.tsx +++ b/src/screens/Profile/Header/index.tsx @@ -7,18 +7,22 @@ import { RichText as RichTextAPI, } from '@atproto/api' -import {usePalette} from 'lib/hooks/usePalette' -import {LoadingPlaceholder} from 'view/com/util/LoadingPlaceholder' +import {LoadingPlaceholder} from '#/view/com/util/LoadingPlaceholder' +import {useTheme} from '#/alf' import {ProfileHeaderLabeler} from './ProfileHeaderLabeler' import {ProfileHeaderStandard} from './ProfileHeaderStandard' let ProfileHeaderLoading = (_props: {}): React.ReactNode => { - const pal = usePalette('default') + const t = useTheme() return ( - <View style={pal.view}> + <View style={t.atoms.bg}> <LoadingPlaceholder width="100%" height={150} style={{borderRadius: 0}} /> <View - style={[pal.view, {borderColor: pal.colors.background}, styles.avi]}> + style={[ + t.atoms.bg, + {borderColor: t.atoms.bg.backgroundColor}, + styles.avi, + ]}> <LoadingPlaceholder width={90} height={90} style={styles.br45} /> </View> <View style={styles.content}> |