refactor code to improve readability and maintainability + redesigned announcement bar

This commit is contained in:
daniel31x13
2024-05-24 17:12:47 -04:00
parent a498f3a10d
commit d262041f33
21 changed files with 191 additions and 175 deletions
+2
View File
@@ -40,6 +40,8 @@ export default function AuthRedirect({ children }: Props) {
{ path: "/collections", isProtected: true },
{ path: "/links", isProtected: true },
{ path: "/tags", isProtected: true },
{ path: "/preserved", isProtected: true },
{ path: "/admin", isProtected: true },
];
if (isPublicPage) {
+1 -1
View File
@@ -1,5 +1,5 @@
import Navbar from "@/components/Navbar";
import Announcement from "@/components/Announcement";
import Announcement from "@/components/AnnouncementBar";
import Sidebar from "@/components/Sidebar";
import { ReactNode, useEffect, useState } from "react";
import getLatestVersion from "@/lib/client/getLatestVersion";