diff --git a/android/src/components/TodayScreen.tsx b/android/src/components/TodayScreen.tsx index 2d903ca..9a3f7dd 100644 --- a/android/src/components/TodayScreen.tsx +++ b/android/src/components/TodayScreen.tsx @@ -1,7 +1,7 @@ import type { BottomTabScreenProps } from "@react-navigation/bottom-tabs"; import React from "react"; import { FlatList, StyleSheet, View } from "react-native"; -import { Button, FAB } from "react-native-paper"; +import { FAB } from "react-native-paper"; import { ListItem } from "@/components/TodayScreen/components/ListItem"; import { useTodayScreen } from "@/components/TodayScreen/hooks/useTodayScreen"; import type { BottomTabParamList } from "@/types/navigation"; @@ -10,7 +10,6 @@ type Props = BottomTabScreenProps; export function TodayScreen(_: Props): JSX.Element { const { - handleButtonOnPress, handleFABOnPress, handleListItemOnCheckboxPress, handleListItemOnItemPress, @@ -18,7 +17,6 @@ export function TodayScreen(_: Props): JSX.Element { } = useTodayScreen(); return ( - item.id.toString()} diff --git a/android/src/components/TodayScreen/hooks/useTodayScreen.ts b/android/src/components/TodayScreen/hooks/useTodayScreen.ts index 8cae98b..6d0f554 100644 --- a/android/src/components/TodayScreen/hooks/useTodayScreen.ts +++ b/android/src/components/TodayScreen/hooks/useTodayScreen.ts @@ -113,7 +113,6 @@ function handleScreenState( } export function useTodayScreen(): { - handleButtonOnPress: () => void; handleFABOnPress: () => void; handleListItemOnCheckboxPress: (item: Item) => () => void; handleListItemOnItemPress: (item: Item) => () => void; @@ -129,10 +128,6 @@ export function useTodayScreen(): { setScreenState(handleScreenState(store, screenState)); }, [screenState, store]); - const handleButtonOnPress = useCallback(() => { - navigation.dispatch(StackActions.push("Item")); - }, [navigation]); - const handleFABOnPress = useCallback(() => { if (screenState.type !== "itemWithCheckedsLoaded") return; const items = screenState.itemWithCheckeds; @@ -188,7 +183,6 @@ export function useTodayScreen(): { ); return { - handleButtonOnPress, handleFABOnPress, handleListItemOnCheckboxPress, handleListItemOnItemPress,