Skip to content

Commit 0e7f080

Browse files
committed
feat: improve photo sharing
1 parent 8d23d6d commit 0e7f080

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/photo-gallery/gallery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export function Gallery({ initialPhotoId }: GalleryProps) {
179179
const getShareUrl = (photoId: number) => {
180180
// Create absolute URL for sharing
181181
const baseUrl = typeof window !== 'undefined' ? window.location.origin : '';
182-
return `${baseUrl}?photo=${photoId}`;
182+
return `${baseUrl}/photos?photo=${photoId}`;
183183
};
184184

185185
return (

src/components/photo-gallery/share-dialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function ShareDialog({ isOpen, onClose, url, title }: ShareDialogProps) {
4444
</DialogHeader>
4545
<div className="flex flex-col gap-4 py-4">
4646
<p className="text-sm text-gray-500">
47-
Comparte un enlace directo a la foto &quot;{title}&quot;
47+
Compartí el link directo a la foto &quot;{title}&quot;
4848
</p>
4949
<div className="flex items-center gap-2">
5050
<Input
@@ -60,7 +60,7 @@ export function ShareDialog({ isOpen, onClose, url, title }: ShareDialogProps) {
6060
</Button>
6161
</div>
6262
{copied && (
63-
<p className="text-sm font-medium text-green-600">¡Enlace copiado al portapapeles!</p>
63+
<p className="text-sm font-medium text-green-600">¡Link copiado al portapapeles!</p>
6464
)}
6565
</div>
6666
<div className="flex justify-end">

0 commit comments

Comments
 (0)