about summary refs log tree commit diff
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-11-27 15:34:12 +0000
committerGitHub <noreply@github.com>2024-11-27 15:34:12 +0000
commit47cbdfecb382b6d64dd55f61490f5ebd599caf1d (patch)
treea799c88bab611876d07bb2d96353753894e7d031
parent763a5d5ab5499b9d27233f0ae5d023e2f95356e9 (diff)
downloadvoidsky-47cbdfecb382b6d64dd55f61490f5ebd599caf1d.tar.zst
Fix web build by removing app icon settings (#6784)
-rw-r--r--src/screens/Settings/AppIconSettings.web.tsx3
-rw-r--r--src/screens/Settings/AppearanceSettings.tsx3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/screens/Settings/AppIconSettings.web.tsx b/src/screens/Settings/AppIconSettings.web.tsx
new file mode 100644
index 000000000..d8c4d9bea
--- /dev/null
+++ b/src/screens/Settings/AppIconSettings.web.tsx
@@ -0,0 +1,3 @@
+export function AppIconSettingsScreen() {
+  throw new Error('Not supported on web')
+}
diff --git a/src/screens/Settings/AppearanceSettings.tsx b/src/screens/Settings/AppearanceSettings.tsx
index 662b3093f..82c4ef97e 100644
--- a/src/screens/Settings/AppearanceSettings.tsx
+++ b/src/screens/Settings/AppearanceSettings.tsx
@@ -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'
@@ -169,7 +170,7 @@ export function AppearanceSettingsScreen({}: Props) {
                 onChange={onChangeFontScale}
               />
 
-              {DISCOVER_DEBUG_DIDS[currentAccount?.did ?? ''] && (
+              {isNative && DISCOVER_DEBUG_DIDS[currentAccount?.did ?? ''] && (
                 <>
                   <SettingsList.Divider />