diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-09-25 14:58:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-25 14:58:53 +0100 |
commit | bd393b1b387eeddff33a520f60f04387c9105379 (patch) | |
tree | 89bd98b303842a8376ddb7aeadf090d0314508dc /src/screens/Profile/Header/index.tsx | |
parent | 850cfc1cd567bf36c3c2ba9dfd92fb579e8e52bc (diff) | |
download | voidsky-bd393b1b387eeddff33a520f60f04387c9105379.tar.zst |
Allow profile header to overscroll (#5457)
* add allowoverscroll prop * ensure spinner is visible * more generic prop for `<List>` * rename to allowHeaderOverScroll
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}> |