From d0984345f6196e0b82cc6ae015a40401de174d21 Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 18 Dec 2022 02:54:20 -0600 Subject: [PATCH] Sticky (fixed) dark mode switch, solid moon icon --- src/components/DarkModeSwitch.tsx | 3 ++- src/components/Page.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/DarkModeSwitch.tsx b/src/components/DarkModeSwitch.tsx index 44a9cb3..b1b0b15 100644 --- a/src/components/DarkModeSwitch.tsx +++ b/src/components/DarkModeSwitch.tsx @@ -1,6 +1,7 @@ import React, {FunctionComponent, useEffect, useState} from "react"; -import {MoonIcon, SunIcon} from "@heroicons/react/24/outline"; +import {SunIcon} from "@heroicons/react/24/outline"; +import {MoonIcon} from "@heroicons/react/24/solid"; import {classNames} from "@/utils/helpers"; function setMode(dark: boolean) { diff --git a/src/components/Page.tsx b/src/components/Page.tsx index 7cb0db2..3ad6484 100644 --- a/src/components/Page.tsx +++ b/src/components/Page.tsx @@ -11,7 +11,7 @@ const Page: FunctionComponent = ({children}: PageProps) => { return ( <>
- +

100Prisoners.com