Skip to content

Commit

Permalink
dont enable all main pages for aoe 4
Browse files Browse the repository at this point in the history
  • Loading branch information
denniske committed Jul 23, 2024
1 parent 8e24414 commit c6bd6a8
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion app/src/app/(more)/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { saveConfigToStorage } from '../../service/storage';
import { appVariants } from '../../styles';
import { useTheme } from '../../theming';
import { createStylesheet } from '../../theming-new';
import { appConfig } from '@nex/dataset';

export default function SettingsPage() {
const styles = useStyles();
Expand Down Expand Up @@ -420,7 +421,7 @@ export default function SettingsPage() {
textMinWidth={150}
divider={divider}
value={config.mainPage || '/'}
values={[
values={appConfig.game === 'aoe2de' ? [
'/',
'/matches',
'/matches/live',
Expand All @@ -436,6 +437,22 @@ export default function SettingsPage() {
'/competitive',
'/competitive/games',
'/competitive/tournaments',
] : [
'/',
'/matches',
'/matches/live',
'/matches/users',
'/explore',
// '/explore/civilizations',
// '/explore/units',
// '/explore/buildings',
// '/explore/technologies',
// '/explore/build-orders',
// '/explore/tips',
'/statistics',
'/competitive',
// '/competitive/games',
'/competitive/tournaments',
]}
formatter={(value) =>
value === '/'
Expand Down

0 comments on commit c6bd6a8

Please sign in to comment.