Add title text to photo buttons

This commit is contained in:
Sam Becker 2025-01-26 14:23:38 -06:00
parent cb13496a34
commit 8d972157a3
2 changed files with 5 additions and 0 deletions

View File

@ -289,6 +289,7 @@ export default function PhotoLarge({
)}>
{shouldShare &&
<ShareButton
title="Share Photo"
photo={photo}
tag={shouldShareTag ? primaryTag : undefined}
camera={shouldShareCamera ? camera : undefined}
@ -300,6 +301,7 @@ export default function PhotoLarge({
/>}
{areZoomControlsEnabled &&
<LoaderButton
title="Open Image Viewer"
icon={<LuZoomIn size={17} />}
onClick={open}
styleAs="link"

View File

@ -11,11 +11,13 @@ import { useRouter } from 'next/navigation';
let prefetchedImage: HTMLImageElement | null = null;
export default function ShareButton({
title,
dim,
prefetch,
className,
...rest
}: {
title?: string
dim?: boolean
prefetch?: boolean
className?: string
@ -35,6 +37,7 @@ export default function ShareButton({
return (
<LoaderButton
title={title}
onClick={() => setShareModalProps?.({ ...rest })}
className={clsx(
className,