diff --git a/src/photo/PhotoLarge.tsx b/src/photo/PhotoLarge.tsx index 36b51122..1ec3f2ed 100644 --- a/src/photo/PhotoLarge.tsx +++ b/src/photo/PhotoLarge.tsx @@ -98,12 +98,16 @@ export default function PhotoLarge({ const showZoomControls = showZoomControlsProp && areZoomControlsShown; - const recipeRef = useRef(null); + const refRecipe = useRef(null); + const refRecipeTrigger = useRef(null); const { shouldShowRecipe, toggleRecipe, - recipeButtonRef, - } = useRecipeState(recipeRef); + hideRecipe, + } = useRecipeState({ + ref: refRecipe, + refTrigger: refRecipeTrigger, + }); const tags = sortTags(photo.tags, primaryTag); @@ -173,23 +177,22 @@ export default function PhotoLarge({ priority={priority} /> - -
+
+ {shouldShowRecipe && photo.fujifilmRecipe && photo.filmSimulation && } -
- + +
; const largePhotoContainerClassName = clsx(arePhotosMatted && @@ -309,7 +312,7 @@ export default function PhotoLarge({ /> {photo.fujifilmRecipe &&