Skip to content

Commit

Permalink
remove irrelevant changes to navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
CDFN committed Apr 23, 2024
1 parent 719a83f commit 063f160
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/frontend/sharedComponents/HomeHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import LinearGradient from 'react-native-linear-gradient';
import {IconButton} from './IconButton';
import {ObservationListIcon} from './icons';
import {GPSPill} from './GPSPill';
import {useNavigationFromHomeTabs} from '../hooks/useNavigationWithTypes';

export const HomeHeader = ({navigation}) => {
export const HomeHeader = () => {
const navigation = useNavigationFromHomeTabs();
return (
<View style={[styles.header]}>
<LinearGradient
Expand All @@ -16,7 +18,7 @@ export const HomeHeader = ({navigation}) => {
<GPSPill />
<IconButton
onPress={() => {
navigation.navigate('ObservationList' as never);
navigation.navigate('ObservationList');
}}
testID="observationListButton">
<ObservationListIcon />
Expand Down

0 comments on commit 063f160

Please sign in to comment.