Hide explore button on TaxonDetails from Match (#2612)

This commit is contained in:
Amanda Bullington
2025-01-15 13:17:57 -08:00
committed by GitHub
parent cf00ef4885
commit be40daa448

View File

@@ -290,6 +290,8 @@ const TaxonDetails = ( ): Node => {
<CarouselDots length={photos.length} index={mediaIndex} />
);
const showExploreButton = !hideNavButtons && isConnected && !fromMatch;
const displayTaxonTitle = useCallback( ( ) => (
<View
className="w-full flex-row items-center pl-5 pr-5 pb-5"
@@ -300,7 +302,7 @@ const TaxonDetails = ( ): Node => {
showSpeciesSeenCheckmark={currentUserHasSeenTaxon}
taxon={taxon}
/>
{!hideNavButtons && isConnected && (
{showExploreButton && (
<View className="ml-2">
<INatIconButton
icon="compass-rose-outline"
@@ -330,8 +332,7 @@ const TaxonDetails = ( ): Node => {
</View>
), [
currentUserHasSeenTaxon,
hideNavButtons,
isConnected,
showExploreButton,
navigation,
setExploreView,
t,