From f9924f0a57d45a443d4ac59ea17b1e1bbb97c6a6 Mon Sep 17 00:00:00 2001
From: Rajat Rajdeep <46029666+RajatRajdeep@users.noreply.github.com>
Date: Tue, 7 Jan 2025 17:37:34 +0530
Subject: [PATCH] Disable dark mode (#52)
---
src/app/layout.js | 3 ++-
src/components/ThemeContext.jsx | 3 ++-
src/components/Tickets.jsx | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/app/layout.js b/src/app/layout.js
index 4036c05..0d05069 100644
--- a/src/app/layout.js
+++ b/src/app/layout.js
@@ -23,7 +23,8 @@ export default function RootLayout({ children }) {
- } />
+ {/* } /> */}
+
diff --git a/src/components/ThemeContext.jsx b/src/components/ThemeContext.jsx
index 4656f84..03a6a00 100644
--- a/src/components/ThemeContext.jsx
+++ b/src/components/ThemeContext.jsx
@@ -14,7 +14,8 @@ export const ThemeProvider = ({ children }) => {
'(prefers-color-scheme: dark)'
).matches;
- const initialTheme = savedTheme || (prefersDark ? 'dark' : 'light');
+ // const initialTheme = savedTheme || (prefersDark ? 'dark' : 'light');
+ const initialTheme = 'light';
setTheme(initialTheme);
document.documentElement.classList.toggle('dark', initialTheme === 'dark');
}, []);
diff --git a/src/components/Tickets.jsx b/src/components/Tickets.jsx
index 0fbd680..b8274d8 100644
--- a/src/components/Tickets.jsx
+++ b/src/components/Tickets.jsx
@@ -19,7 +19,7 @@ export default function Tickets() {
>
Tickets
-
+
You can book your tickets directly on the