Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wyne committed Nov 17, 2023
1 parent e7b6468 commit 6921979
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Navigation } from './src/Navigation';
import { View } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import analytics from '@react-native-firebase/analytics';
import { PointSelectModalContextProvider } from './src/components/PointSelectModalContext';
import { PointSelectModalContextProvider } from './src/contexts/PointSelectModalContext';

if (process.env.EXPO_PUBLIC_FIREBASE_ANALYTICS == "false") {
analytics().setAnalyticsCollectionEnabled(false);
Expand Down
4 changes: 2 additions & 2 deletions src/components/Buttons/AppInfoButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const AppInfoButton: React.FunctionComponent<Props> = ({ navigation }) => {
navigation.navigate('AppInfo');
await analytics().logEvent('app_info');
}}>
<Icon name="info-circle"
type="font-awesome-5"
<Icon name="gear"
type="font-awesome"
size={20}
color={systemBlue} />
</HeaderButton >
Expand Down
4 changes: 2 additions & 2 deletions src/components/Buttons/MultiplierButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Text, View, StyleSheet, TouchableHighlight } from 'react-native';

import { useAppSelector } from '../../../redux/hooks';
import { systemBlue } from '../../constants';
import { usePointSelectModalContext } from '../PointSelectModalContext';
import { usePointSelectModalContext } from '../../contexts/PointSelectModalContext';

const MultiplierButton: React.FunctionComponent = ({ }) => {
const addendOne = useAppSelector(state => state.settings.addendOne);
Expand All @@ -22,7 +22,7 @@ const MultiplierButton: React.FunctionComponent = ({ }) => {
return (
<TouchableHighlight onPress={handlePress}>
<View style={styles.button}>
<Text style={styles.buttonText}>{addendOne},{addendTwo}</Text>
<Text style={styles.buttonText}>{addendOne}, {addendTwo}</Text>
</View>
</TouchableHighlight>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Headers/AppInfoHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const AppInfoHeader: React.FunctionComponent<Props> = ({ navigation }: Props) =>
return (
<CustomHeader navigation={navigation}
headerLeft={<MenuButton navigation={navigation} />}
headerCenter={<Text style={styles.title}>Info</Text>}
headerCenter={<Text style={styles.title}>Settings</Text>}
/>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { View, StyleSheet, Text } from 'react-native';
import { useAppDispatch, useAppSelector } from '../../redux/hooks';
import { BottomSheetBackdrop, BottomSheetBackdropProps, BottomSheetModal } from '@gorhom/bottom-sheet';

import { usePointSelectModalContext } from './PointSelectModalContext';
import { usePointSelectModalContext } from '../contexts/PointSelectModalContext';
import { Picker } from '@react-native-picker/picker';
import { setAddendOne, setAddendTwo, setMultiplier } from '../../redux/SettingsSlice';

Expand Down Expand Up @@ -64,7 +64,7 @@ const PointSelectorBottomSheet: React.FunctionComponent<Props> = ({ }) => {
handleIndicatorStyle={{ backgroundColor: 'white' }}
>
<View style={styles.modalContainer}>
<Text style={{ color: 'white', fontSize: 20 }}>Tap Actions</Text>
<Text style={{ color: 'white', fontSize: 20 }}>Point Values</Text>

<View style={{
flex: 1,
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions src/screens/GameScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ import { useAppSelector } from '../../redux/hooks';
import PlayerTile from '../components/PlayerTile';
import { selectGameById } from '../../redux/GamesSlice';
import GameBottomSheet, { bottomSheetHeight } from '../components/GameBottomSheet';
import PointSelectorBottomSheet from '../components/PointSelectorBottomSheet';
import PointSelectorBottomSheet from '../components/PointSelectorModal';
import { BottomSheetModalProvider } from '@gorhom/bottom-sheet';


interface Props {
navigation: NativeStackNavigationProp<ParamListBase, string, undefined>;
}
Expand Down

0 comments on commit 6921979

Please sign in to comment.