From 5e36ec379cb276f69d62c24ef9002fb48d7f9c68 Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Thu, 12 Sep 2024 14:54:37 +0200 Subject: [PATCH] fix: fix small bugs --- src/App.tsx | 2 +- src/components/Nvim/NvimInput.tsx | 4 +--- .../Waybar/Widgets/WaybarBrightnessWidget.tsx | 14 +++++++------- src/providers/AppProvider.tsx | 2 +- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index c267e4a..80c2be8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -25,7 +25,7 @@ const AppRoot = () => { return ( <>
diff --git a/src/components/Nvim/NvimInput.tsx b/src/components/Nvim/NvimInput.tsx index b932db1..b06a665 100644 --- a/src/components/Nvim/NvimInput.tsx +++ b/src/components/Nvim/NvimInput.tsx @@ -1,3 +1 @@ -export const NvimInput = () => ( -
Welcome to my website!!
-); +export const NvimInput = () =>
~ hello@pihkaal.me
; diff --git a/src/components/Waybar/Widgets/WaybarBrightnessWidget.tsx b/src/components/Waybar/Widgets/WaybarBrightnessWidget.tsx index eadc7ad..caa44f0 100644 --- a/src/components/Waybar/Widgets/WaybarBrightnessWidget.tsx +++ b/src/components/Waybar/Widgets/WaybarBrightnessWidget.tsx @@ -18,18 +18,18 @@ export const WaybarBrightnessWidget = () => { const tooltip = brightness === 100 - ? "Full" + ? "Flashbang mode" : brightness >= 70 - ? "Almost full" + ? "Bright as a Brest day!" : brightness >= 50 - ? "Halfway down, but still doing great. I wonder what happens if the brightness reaches 0" + ? "Halfway to becoming a night owl" : brightness >= 25 - ? "Uh maybe you should consider charging me ?" + ? "I'm scared of the dark please stop" : brightness >= 15 - ? "It's really reaching low level now" + ? "Just turn off you screen at this point" : brightness >= 5 - ? "Are you ignoring my messages ??" - : "I warned you"; + ? "Can you even read now ?" + : "So dark"; return ( diff --git a/src/providers/AppProvider.tsx b/src/providers/AppProvider.tsx index e862907..f6fbdf3 100644 --- a/src/providers/AppProvider.tsx +++ b/src/providers/AppProvider.tsx @@ -26,7 +26,7 @@ export const AppProvider = (props: { children?: ReactNode }) => { }); useEffect(() => { - localStorage.setItem("state", state); + localStorage.setItem("state", state === "desktop" ? "login" : state); localStorage.setItem("brightness", brightness.toString()); localStorage.setItem("volume", volume.toString()); }, [state, brightness, volume]);