mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-02 10:19:43 +00:00
- New discovery components (ContentTile, ContentRow, CircularProgress) - Refactor home screen with compact header and content tiles - Add hide_nsfw profile setting for content filtering - Add color column to categories table - Track pack progress (answered/total questions) - Update related stores and tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
49 lines
1.6 KiB
TypeScript
49 lines
1.6 KiB
TypeScript
import React from 'react';
|
|
import { ScrollView, StyleSheet, Platform } from 'react-native';
|
|
|
|
import { GradientBackground } from '../../../components/ui';
|
|
import { spacing } from '../../../theme';
|
|
import { useProfileSettings } from '../hooks';
|
|
import { ScreenHeader, PrivacySettings } from '../components';
|
|
|
|
/**
|
|
* Preferences sub-screen for content and biometric settings.
|
|
*/
|
|
export function PreferencesScreen() {
|
|
const settings = useProfileSettings();
|
|
|
|
return (
|
|
<GradientBackground>
|
|
<ScreenHeader title="Preferences" />
|
|
<ScrollView
|
|
style={styles.container}
|
|
contentContainerStyle={styles.content}
|
|
showsVerticalScrollIndicator={false}
|
|
>
|
|
<PrivacySettings
|
|
biometricAvailable={settings.biometricAvailable}
|
|
biometricEnabled={settings.biometricEnabled}
|
|
biometricType={settings.biometricType}
|
|
isUpdatingBiometric={settings.isUpdatingBiometric}
|
|
onBiometricToggle={settings.handleBiometricToggle}
|
|
hideNsfw={settings.hideNsfw}
|
|
isUpdatingHideNsfw={settings.isUpdatingHideNsfw}
|
|
onHideNsfwToggle={settings.handleHideNsfwToggle}
|
|
/>
|
|
</ScrollView>
|
|
</GradientBackground>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
},
|
|
content: {
|
|
paddingTop: spacing.lg,
|
|
paddingBottom: Platform.OS === 'ios' ? 40 : 20,
|
|
},
|
|
});
|
|
|
|
export default PreferencesScreen;
|