Skip to content

Commit

Permalink
Fix web build by removing app icon settings (#6784)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Nov 27, 2024
1 parent 763a5d5 commit 47cbdfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/screens/Settings/AppIconSettings.web.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function AppIconSettingsScreen() {
throw new Error('Not supported on web')
}
3 changes: 2 additions & 1 deletion src/screens/Settings/AppearanceSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {useLingui} from '@lingui/react'

import {DISCOVER_DEBUG_DIDS} from '#/lib/constants'
import {CommonNavigatorParams, NativeStackScreenProps} from '#/lib/routes/types'
import {isNative} from '#/platform/detection'
import {useSession} from '#/state/session'
import {useSetThemePrefs, useThemePrefs} from '#/state/shell'
import {Logo} from '#/view/icons/Logo'
Expand Down Expand Up @@ -169,7 +170,7 @@ export function AppearanceSettingsScreen({}: Props) {
onChange={onChangeFontScale}
/>

{DISCOVER_DEBUG_DIDS[currentAccount?.did ?? ''] && (
{isNative && DISCOVER_DEBUG_DIDS[currentAccount?.did ?? ''] && (
<>
<SettingsList.Divider />

Expand Down

0 comments on commit 47cbdfe

Please sign in to comment.