Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/src/importMetArtworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function importArtworks() {
country: artwork.country,
city: artwork.city,
culture: artwork.culture,
period: artwork.period,
period: artwork.period,
},
},
{ upsert: true },
Expand Down
6 changes: 3 additions & 3 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/src/components/AddToGalleryModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@ export default function AddToGalleryModal({
</div>
</div>
);
}
}
2 changes: 1 addition & 1 deletion frontend/src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export default function Footer() {
<p>© {new Date().getFullYear()} Artex. All rights reserved</p>
</footer>
);
}
}
2 changes: 1 addition & 1 deletion frontend/src/components/GalleryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ export default function GalleryCard({
</p>
</div>
);
}
}
2 changes: 1 addition & 1 deletion frontend/src/components/ProtectedRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export default function ProtectedRoute({ children }: ProtectedRouteProps) {
}

return children;
}
}
2 changes: 1 addition & 1 deletion frontend/src/hooks/useArtwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ export function useArtwork(id: number) {
}, [id]);

return { artwork, loading, error };
}
}
7 changes: 2 additions & 5 deletions frontend/src/hooks/useGalleryCoverImages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ export function useGalleryCoverImages(galleries: Gallery[]) {

return result.data?.artwork?.image_url ?? null;
} catch (error) {
console.error(
`Could not fetch artwork ${artworkId}:`,
error,
);
console.error(`Could not fetch artwork ${artworkId}:`, error);

return null;
}
Expand All @@ -86,4 +83,4 @@ export function useGalleryCoverImages(galleries: Gallery[]) {
}, [galleries]);

return coverImages;
}
}
2 changes: 1 addition & 1 deletion frontend/src/pages/ArtworkDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ export default function ArtworkDetailPage() {
)}
</section>
);
}
}
2 changes: 1 addition & 1 deletion frontend/src/store/authStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ export const useAuthStore = create<AuthState>()(
storage: createJSONStorage(() => sessionStorage),
},
),
);
);