Skip to content

Commit

Permalink
disable maps in short term
Browse files Browse the repository at this point in the history
  • Loading branch information
taronaleksanian committed Jul 29, 2024
1 parent 4b11cfd commit dc515a2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
4 changes: 2 additions & 2 deletions packages/app/components/destination/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const DestinationPage = () => {
geoJSON={geoJSON}
selectedSearchResult={currentDestination}
/>
<LargeCard
{/* <LargeCard
title="Map"
Icon={() => (
<Ionicons
Expand All @@ -199,7 +199,7 @@ export const DestinationPage = () => {
ContentComponent={map}
contentProps={{ shape }}
type="map"
/>
/> */}
<WeatherData latLng={latLng} />
</>
)}
Expand Down
22 changes: 11 additions & 11 deletions packages/app/hooks/navigation/useNavigationList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,17 @@ const logedInMenuItems: NavigationItem[] = [
text: 'Packs',
iconSource: MaterialIcons,
},
...((Platform.OS != 'web'
? [
{
type: NavigationItemTypeEnum.LINK,
href: '/maps',
icon: 'map',
text: 'Downloaded Maps',
iconSource: Entypo,
},
]
: []) as NavigationItem[]),
// ...((Platform.OS != 'web'
// ? [
// {
// type: NavigationItemTypeEnum.LINK,
// href: '/maps',
// icon: 'map',
// text: 'Downloaded Maps',
// iconSource: Entypo,
// },
// ]
// : []) as NavigationItem[]),
{
type: NavigationItemTypeEnum.LINK,
href: '/items',
Expand Down
6 changes: 4 additions & 2 deletions packages/app/screens/maps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import useCustomStyles from 'app/hooks/useCustomStyles';
import { Map } from 'app/components/map';
import { useAuthUserToken, useUserQuery } from 'app/auth/hooks';
import type OfflinePack from '@rnmapbox/maps/lib/typescript/src/modules/offline/OfflinePack';
import { ZStack } from 'tamagui';
import { disableScreen } from 'app/hoc/disableScreen';

interface OfflineMap {
name: string;
Expand Down Expand Up @@ -53,7 +53,7 @@ function CircleCapComp() {
);
}

export default function DownloadedMaps() {
function DownloadedMaps() {
const styles = useCustomStyles(loadStyles);
const { enableDarkMode, enableLightMode, isDark, isLight, currentTheme } =
useTheme();
Expand Down Expand Up @@ -173,3 +173,5 @@ const loadStyles = ({ currentTheme }) => {
},
};
};

export default disableScreen(DownloadedMaps);

0 comments on commit dc515a2

Please sign in to comment.