From 1b30a8edd4838af64f68beff5d1ebaaaf80e06a4 Mon Sep 17 00:00:00 2001 From: karamvir Date: Tue, 8 Aug 2023 02:32:41 -0700 Subject: [PATCH] add theme toggle to header --- frontend/src/pages/auth/login.tsx | 84 +++++++++++++++++-------------- 1 file changed, 45 insertions(+), 39 deletions(-) diff --git a/frontend/src/pages/auth/login.tsx b/frontend/src/pages/auth/login.tsx index 324047666..aec7db093 100644 --- a/frontend/src/pages/auth/login.tsx +++ b/frontend/src/pages/auth/login.tsx @@ -12,6 +12,7 @@ import { useInvalidate } from "@hooks"; import { useEffect, useState } from "react"; import { useMutation } from "@tanstack/react-query"; import { client } from "@main"; +import { ThemeToggle } from "@components/util"; type LoginCredentials = { username: string; password: string }; @@ -45,45 +46,50 @@ export const Login = () => { const { mutate, isLoading } = useLogin(creds); return ( -
- - - Monitor - Log In - - -
- - - set((c) => ({ ...c, username: target.value })) - } - /> -
-
- - - set((c) => ({ ...c, password: target.value })) - } - /> -
-
- -
-
-
+
+
+ +
+
+ + + Monitor + Log In + + +
+ + + set((c) => ({ ...c, username: target.value })) + } + /> +
+
+ + + set((c) => ({ ...c, password: target.value })) + } + /> +
+
+ +
+
+
+
); };