feat: add mobile shell and unified search
Some checks failed
ci / 정본·보안·린트·타입·테스트 (push) Failing after 50s
ci / 워크스페이스 빌드 검증 (push) Has been skipped
ci / Supabase Edge Functions + Cloudflare Worker (push) Successful in 20s
ci / .NET API 서버 테스트 (push) Successful in 12s
deploy-site / deploy (push) Successful in 39s
ci / 모바일 린트·타입·Jest (push) Failing after 3h10m31s
Some checks failed
ci / 정본·보안·린트·타입·테스트 (push) Failing after 50s
ci / 워크스페이스 빌드 검증 (push) Has been skipped
ci / Supabase Edge Functions + Cloudflare Worker (push) Successful in 20s
ci / .NET API 서버 테스트 (push) Successful in 12s
deploy-site / deploy (push) Successful in 39s
ci / 모바일 린트·타입·Jest (push) Failing after 3h10m31s
This commit is contained in:
parent
f505a03d34
commit
5ca3709b32
98 changed files with 5168 additions and 2093 deletions
|
|
@ -8,7 +8,6 @@ import {
|
|||
Switch,
|
||||
View,
|
||||
} from 'react-native'
|
||||
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
||||
import { useNavigation } from '@react-navigation/native'
|
||||
import { useI18n, type TranslationKey } from '@d3ro/i18n'
|
||||
import { SITE_URLS } from '@d3ro/core/web-urls'
|
||||
|
|
@ -33,6 +32,7 @@ import {
|
|||
import { useMobileAds } from '../lib/mobile-ads-context'
|
||||
import { useDevice } from '../lib/device-context'
|
||||
import { currentAdminRole } from '../features/admin/admin-service'
|
||||
import { ScreenHeader } from '../components/ScreenHeader'
|
||||
import { performAccountLogout } from '../lib/account-exit'
|
||||
|
||||
type SavingPreference = 'theme' | 'locale' | 'autoPolish' | 'haptic' | null
|
||||
|
|
@ -60,7 +60,6 @@ const ERROR_KEYS: Record<PreferencesErrorCode, TranslationKey> = {
|
|||
}
|
||||
|
||||
export default function SettingsScreen(): React.ReactElement {
|
||||
const insets = useSafeAreaInsets()
|
||||
const { t, locale, setLocale, formatTime } = useI18n()
|
||||
const { user, purgeLocalSession } = useAuth()
|
||||
const navigation = useNavigation<any>()
|
||||
|
|
@ -162,20 +161,7 @@ export default function SettingsScreen(): React.ReactElement {
|
|||
contentContainerStyle={styles.content}
|
||||
testID="settings-screen"
|
||||
>
|
||||
<ThemeText
|
||||
variant="title"
|
||||
color="primary"
|
||||
accessibilityRole="header"
|
||||
style={[
|
||||
styles.title,
|
||||
{
|
||||
paddingTop: insets.top + 8,
|
||||
borderBottomColor: palette.border.subtle,
|
||||
},
|
||||
]}
|
||||
>
|
||||
{t('mobile.set.title')}
|
||||
</ThemeText>
|
||||
<ScreenHeader title={t('mobile.set.title')} testID="settings-header" />
|
||||
|
||||
<SectionLabel label={t('mobile.set.accountPlan')} />
|
||||
<ThemeCard style={styles.section}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue