Fix prefetch links

This commit is contained in:
Sam Becker 2025-01-11 15:29:27 -06:00
parent 375dd9e034
commit 0ad1a519a4

View File

@ -1,11 +1,11 @@
import { Photo, PhotoSetAttributes, PhotoSetCategory } from '@/photo';
import { absolutePathForPhotoImage } from '@/site/paths';
import { absolutePathForTagImage } from '@/site/paths';
import {
absolutePathForCamera,
absolutePathForFilmSimulation,
absolutePathForCameraImage,
absolutePathForFilmSimulationImage,
absolutePathForFocalLengthImage,
absolutePathForPhotoImage,
absolutePathForTagImage,
} from '@/site/paths';
import { absolutePathForFocalLength } from '@/site/paths';
export type ShareModalProps = Omit<PhotoSetAttributes, 'photos'> & {
photo?: Photo
@ -26,12 +26,12 @@ export const getSharePathFromShareModalProps = ({
return absolutePathForTagImage(tag);
}
if (camera) {
return absolutePathForCamera(camera);
return absolutePathForCameraImage(camera);
}
if (simulation) {
return absolutePathForFilmSimulation(simulation);
return absolutePathForFilmSimulationImage(simulation);
}
if (focal) {
return absolutePathForFocalLength(focal);
return absolutePathForFocalLengthImage(focal);
}
};