Skip to content

Commit

Permalink
Clean unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
wyne committed Nov 19, 2023
1 parent 0360a1a commit 7f1672c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/components/Buttons/NewGameButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import { ParamListBase } from '@react-navigation/native';

import { useAppSelector, useAppDispatch } from '../../../redux/hooks';
import { systemBlue } from '../../constants';
import HeaderButton from './HeaderButton';
import { asyncCreateGame, selectAllGames } from '../../../redux/GamesSlice';
import { MenuAction, MenuView } from '@react-native-menu/menu';
import { Text } from 'react-native';

interface Props {
navigation: NativeStackNavigationProp<ParamListBase, string, undefined>;
Expand Down
2 changes: 1 addition & 1 deletion src/components/GameListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const GameListItem: React.FunctionComponent<Props> = ({ navigation, gameId, inde
};

return (
<Animated.View entering={FadeInUp.duration(200).delay(index * 100)}
<Animated.View entering={FadeInUp.duration(200).delay(100 + index * 100)}
exiting={SlideOutLeft.duration(200)}>
<MenuView
title={gameTitle}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Rounds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface RoundScollOffset {
[key: number]: number;
}

const Rounds: React.FunctionComponent<Props> = ({ navigation }) => {
const Rounds: React.FunctionComponent<Props> = ({ }) => {
const [roundScollOffset, setRoundScrollOffset] = useState<RoundScollOffset>({});

const currentGameId = useAppSelector(state => state.settings.currentGameId);
Expand Down
4 changes: 0 additions & 4 deletions src/components/ScoreLog/PlayerNameColumn.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import React from 'react';
import { Text, View, StyleSheet } from 'react-native';
import { TouchableOpacity } from 'react-native';
import analytics from '@react-native-firebase/analytics';
import { NativeStackNavigationProp } from '@react-navigation/native-stack';
import { ParamListBase } from '@react-navigation/native';

import { useAppSelector } from '../../../redux/hooks';
import { palette, systemBlue } from '../../constants';
Expand Down
6 changes: 3 additions & 3 deletions src/components/Sheets/GameSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { useAppDispatch, useAppSelector } from '../../../redux/hooks';
import Rounds from '../Rounds';
import { selectGameById, updateGame } from '../../../redux/GamesSlice';
import { systemBlue } from '../../constants';
import Animated, { Extrapolate, FadeIn, FadeOut, Layout, interpolate, useAnimatedStyle, useSharedValue } from 'react-native-reanimated';
import { TouchableOpacity, TouchableWithoutFeedback } from 'react-native';
import { Button, Icon } from 'react-native-elements';
import Animated, { Extrapolate, FadeIn, Layout, interpolate, useAnimatedStyle, useSharedValue } from 'react-native-reanimated';
import { TouchableWithoutFeedback } from 'react-native';
import { Button } from 'react-native-elements';
import { useGameSheetContext } from './GameSheetContext';
import BigButton from '../BigButtons/BigButton';
import { selectAllPlayers, updatePlayer } from '../../../redux/PlayersSlice';
Expand Down

0 comments on commit 7f1672c

Please sign in to comment.