Skip to content

Commit

Permalink
fix typo on hook
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-bierman committed Dec 31, 2023
1 parent 0d46a47 commit c9b878d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions client/app/(app)/drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '@expo/vector-icons';
import { theme, darkTheme } from '../../../theme';
// import { useAuth } from "../../auth/provider";
import UseTheme from '../../../hooks/useTheme';
import useTheme from '../../../hooks/useTheme';
import { signOut } from '../../../store/authStore';

import { useDispatch, useSelector } from 'react-redux';
Expand All @@ -18,7 +18,7 @@ import useCustomStyles from '~/hooks/useCustomStyles';

export default function Drawer() {
const { enableDarkMode, enableLightMode, isDark, isLight, currentTheme } =
UseTheme();
useTheme();
const styles = useCustomStyles(loadStyles);

const { sessionSignOut } = useSession();
Expand Down
4 changes: 2 additions & 2 deletions client/app/(app)/items/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useEffect, useState } from 'react';
import { StyleSheet, Platform } from 'react-native';
import { MaterialIcons } from '@expo/vector-icons';
import { theme } from '../../../theme';
import UseTheme from '../../../hooks/useTheme';
import useTheme from '../../../hooks/useTheme';
import { RTooltip, RButton, RScrollView } from '@packrat/ui';
import { CustomModal } from '../../../components/modal';
import { AddItemGlobal } from '../../../components/item/AddItemGlobal';
Expand Down Expand Up @@ -31,7 +31,7 @@ export default function Items() {
const [refetch, setRefetch] = useState(false);

const { enableDarkMode, enableLightMode, isDark, isLight, currentTheme } =
UseTheme();
useTheme();

const { data, isLoading, isError } = useFetchGlobalItems(limit, page);
return (
Expand Down
4 changes: 2 additions & 2 deletions client/app/(app)/map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import Mapbox from '@rnmapbox/maps';
import { MAPBOX_ACCESS_TOKEN } from '@env';
import { FontAwesome, MaterialCommunityIcons } from '@expo/vector-icons';
import { theme } from '../../../theme';
import UseTheme from '../../../hooks/useTheme';
import useTheme from '../../../hooks/useTheme';
import ErrorBoundary from '@packrat/ui';
import { useCustomStyles } from '~/hooks/useCustomStyles';

Mapbox.setAccessToken(MAPBOX_ACCESS_TOKEN);

export default function Map() {
const { enableDarkMode, enableLightMode, isDark, isLight, currentTheme } =
UseTheme();
useTheme();

const styles = useCustomStyles(loadStyles);

Expand Down
6 changes: 3 additions & 3 deletions client/app/(app)/maps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useEffect, useState } from 'react';
import { TouchableOpacity } from 'react-native-gesture-handler';
import MapButtonsOverlay from '../../../components/map/MapButtonsOverlay';
import { theme } from '../../../theme';
import UseTheme from '../../../hooks/useTheme';
import useTheme from '../../../hooks/useTheme';
import { StyleSheet } from 'react-native';
import {
calculateZoomLevel,
Expand All @@ -13,7 +13,7 @@ import {

function CircleCapComp() {
const { enableDarkMode, enableLightMode, isDark, isLight, currentTheme } =
UseTheme();
useTheme();

return (
<View
Expand All @@ -31,7 +31,7 @@ function CircleCapComp() {

export default function DownloadedMaps() {
const { enableDarkMode, enableLightMode, isDark, isLight, currentTheme } =
UseTheme();
useTheme();
const [offlinePacks, setOfflinePacks] = useState(null);
const [showMap, setShowMap] = useState(false);
const [pack, setPack] = useState(null);
Expand Down
4 changes: 2 additions & 2 deletions client/screens/items/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useEffect, useState } from 'react';
import { Box, Button, ScrollView, Tooltip } from 'native-base';
import { MaterialIcons } from '@expo/vector-icons';
import { theme } from '../../theme';
import UseTheme from '../../hooks/useTheme';
import useTheme from '../../hooks/useTheme';
import { CustomModal } from '../../components/modal';
import { AddItemGlobal } from '../../components/item/AddItemGlobal';
import { ItemsTable } from '../../components/itemtable/itemTable';
Expand All @@ -21,7 +21,7 @@ export default function Items() {
const [refetch, setRefetch] = useState(false);

const { enableDarkMode, enableLightMode, isDark, isLight, currentTheme } =
UseTheme();
useTheme();
const styles = useCustomStyles(loadStyles);
const data = useSelector((state) => state.globalItems);
const isLoading = useSelector((state) => state.globalItems.isLoading);
Expand Down

0 comments on commit c9b878d

Please sign in to comment.