diff --git a/src/components/Explore/Explore.js b/src/components/Explore/Explore.js index fcc52e1cc..fb294877e 100644 --- a/src/components/Explore/Explore.js +++ b/src/components/Explore/Explore.js @@ -169,7 +169,6 @@ const Explore = ( { {currentExploreView === "species" && ( void } const ExploreTaxonGridItem = ( { count, showSpeciesSeenCheckmark = false, style, - taxon, - setCurrentExploreView + taxon }: Props ) => { - const { dispatch } = useExplore( ); const { t } = useTranslation( ); return ( { - if ( !( taxon?.id && taxon?.name ) ) return; - dispatch( { - type: EXPLORE_ACTION.CHANGE_TAXON, - taxon: { id: taxon.id }, - taxonId: taxon?.id, - taxonName: taxon?.preferred_common_name || taxon?.name - } ); - setCurrentExploreView( "observations" ); - }} - > - - - )} /> ); }; diff --git a/src/components/Explore/SpeciesView.js b/src/components/Explore/SpeciesView.js index 09e306138..c1d2b71a5 100644 --- a/src/components/Explore/SpeciesView.js +++ b/src/components/Explore/SpeciesView.js @@ -22,7 +22,6 @@ type Props = { canFetch?: boolean, isConnected: boolean, queryParams: Object, - setCurrentExploreView: Function, handleUpdateCount: Function } @@ -30,7 +29,6 @@ const SpeciesView = ( { canFetch, isConnected, queryParams, - setCurrentExploreView, handleUpdateCount }: Props ): Node => { // 20240814 - amanda: not sure if we actually need observedTaxonIds in state in the long @@ -131,7 +129,6 @@ const SpeciesView = ( { return (