fix: design fixes

Signed-off-by: Varun Raj <varun@skcript.com>
This commit is contained in:
Varun Raj committed 2024-12-24 20:53:31 +05:30
1 parent 43cfcdbe8f
commit e305e458f1
2 files changed
+9 -3

No files matched your search

+6 -1
View File
@@ -1,4 +1,4 @@
import { Album, GalleryHorizontal, GalleryVerticalEnd, Home, Image, LocateOff, MapPinX, User } from "lucide-react";
import { Album, GalleryHorizontal, GalleryVerticalEnd, Home, Image, LocateOff, MapPinX, Rewind, User } from "lucide-react";
export const sidebarNavs = [
{
@@ -26,4 +26,9 @@ export const sidebarNavs = [
link: "/albums",
icon: <GalleryHorizontal className="h-4 w-4" />,
},
{
title: "Rewind 2024",
link: "/rewind",
icon: <Rewind className="h-4 w-4" />,
},
];
+3 -2
View File
@@ -7,6 +7,7 @@ import Header from '@/components/shared/Header';
import { Button } from '@/components/ui/button';
import { getRewindStats } from '@/handlers/api/common.handler';
import { ASSET_PREVIEW_PATH, ASSET_THUMBNAIL_PATH, PERSON_THUBNAIL_PATH } from '@/config/routes';
import Loader from '@/components/ui/loader';
interface IStats {
numberOfPhotos: number;
@@ -103,11 +104,11 @@ export default function RewindPage() {
fetchStats();
}, []);
if (loading) return <div>Loading...</div>;
if (loading) return <Loader />
if (error) return <div>Error: {error}</div>;
return (
<PageLayout className="p-4">
<PageLayout>
<Header leftComponent="Rewind 2024" />
<div className="flex justify-center items-center w-full h-full">
<Player