add scrollview to moderation screen (#2187)

zio/stable
Ansh 2023-12-13 02:37:59 +05:30 committed by GitHub
parent 1289b161a1
commit 9ab0ff6f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 75 additions and 72 deletions

View File

@ -30,6 +30,7 @@ import {
useProfileQuery, useProfileQuery,
useProfileUpdateMutation, useProfileUpdateMutation,
} from '#/state/queries/profile' } from '#/state/queries/profile'
import {ScrollView} from '../com/util/Views'
type Props = NativeStackScreenProps<CommonNavigatorParams, 'Moderation'> type Props = NativeStackScreenProps<CommonNavigatorParams, 'Moderation'>
export function ModerationScreen({}: Props) { export function ModerationScreen({}: Props) {
@ -61,6 +62,7 @@ export function ModerationScreen({}: Props) {
]} ]}
testID="moderationScreen"> testID="moderationScreen">
<ViewHeader title={_(msg`Moderation`)} showOnDesktop /> <ViewHeader title={_(msg`Moderation`)} showOnDesktop />
<ScrollView>
<View style={styles.spacer} /> <View style={styles.spacer} />
<TouchableOpacity <TouchableOpacity
testID="contentFilteringBtn" testID="contentFilteringBtn"
@ -134,6 +136,7 @@ export function ModerationScreen({}: Props) {
<Trans>Logged-out visibility</Trans> <Trans>Logged-out visibility</Trans>
</Text> </Text>
<PwiOptOut /> <PwiOptOut />
</ScrollView>
</CenteredView> </CenteredView>
) )
} }