aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-01 23:34:25 +0900
committernsfisis <nsfisis@gmail.com>2024-08-01 23:34:25 +0900
commitca4e86c99a935c41b319efea43365221569c7d62 (patch)
treeb25c8226efa42be3e631cdf2f047c13c1b807889
parent16a2909bc0670226fb639d03edd0e9b7f20b54c6 (diff)
downloadiosdc-japan-2024-albatross-ca4e86c99a935c41b319efea43365221569c7d62.tar.gz
iosdc-japan-2024-albatross-ca4e86c99a935c41b319efea43365221569c7d62.tar.zst
iosdc-japan-2024-albatross-ca4e86c99a935c41b319efea43365221569c7d62.zip
fix(frontend): fix an issue where stylesheets for admin pages are not unloaded when you logout
-rw-r--r--frontend/app/routes/admin.tsx10
1 files changed, 8 insertions, 2 deletions
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 },
+];