From ca4e86c99a935c41b319efea43365221569c7d62 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Thu, 1 Aug 2024 23:34:25 +0900
Subject: fix(frontend): fix an issue where stylesheets for admin pages are not
 unloaded when you logout

---
 frontend/app/routes/admin.tsx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'frontend/app/routes/admin.tsx')

diff --git a/frontend/app/routes/admin.tsx b/frontend/app/routes/admin.tsx
index 2b05356..ceef37e 100644
--- a/frontend/app/routes/admin.tsx
+++ b/frontend/app/routes/admin.tsx
@@ -1,2 +1,8 @@
-import "sakura.css/css/normalize.css";
-import "sakura.css/css/sakura.css";
+import type { LinksFunction } from "@remix-run/node";
+import normalizeCss from "sakura.css/css/normalize.css?url";
+import sakuraCss from "sakura.css/css/sakura.css?url";
+
+export const links: LinksFunction = () => [
+	{ rel: "stylesheet", href: normalizeCss },
+	{ rel: "stylesheet", href: sakuraCss },
+];
-- 
cgit v1.3.1

