aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-08 23:38:55 -0800
committerAdam Soltys <[email protected]>2024-11-08 23:38:55 -0800
commitd47895ec4d54feef1114029ba11188362fa1222d (patch)
tree5ee5a223231e87f633e335890fa9f8f0a0c2c170 /src/routes/(app)
parent330e1dd77ab59084a831508e1dab103fd601dc49 (diff)
downloadcoinos-ui-d47895ec4d54feef1114029ba11188362fa1222d.tar.gz
coinos-ui-d47895ec4d54feef1114029ba11188362fa1222d.zip
default light theme
Diffstat (limited to 'src/routes/(app)')
-rw-r--r--src/routes/(app)/+layout.server.ts2
-rw-r--r--src/routes/(app)/invoice/[id]/+layout.server.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/+layout.server.ts b/src/routes/(app)/+layout.server.ts
index 96bde919..85aa3e15 100644
--- a/src/routes/(app)/+layout.server.ts
+++ b/src/routes/(app)/+layout.server.ts
@@ -55,6 +55,6 @@ export async function load({ cookies, request, url, params }) {
console.log(e);
}
- const theme = cookies.get("theme");
+ const theme = cookies.get("theme") || "light";
return { user, token, rate, rates, subject, theme };
}
diff --git a/src/routes/(app)/invoice/[id]/+layout.server.ts b/src/routes/(app)/invoice/[id]/+layout.server.ts
index e428d9fe..c4a4ccab 100644
--- a/src/routes/(app)/invoice/[id]/+layout.server.ts
+++ b/src/routes/(app)/invoice/[id]/+layout.server.ts
@@ -36,6 +36,6 @@ export async function load({ cookies, depends, params, url, parent }) {
}
const src = Qr.drawImg(invoice?.text || "", { size: 500 });
- const theme = cookies.get("theme");
+ const theme = cookies.get("theme") || "light";
return { id, invoice, subject, src, user, token, theme };
}