1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-30 23:21:29 -04:00

fork next-themes into use-theme hook

This commit is contained in:
2022-03-07 16:13:55 -05:00
parent 2e1da44d42
commit a917b5f81d
9 changed files with 292 additions and 12 deletions

View File

@ -1,7 +1,7 @@
import { memo } from "react";
import Head from "next/head";
import { useTheme } from "next-themes";
import HCaptcha from "@hcaptcha/react-hcaptcha";
import { useTheme } from "../../hooks/use-theme";
export type CaptchaProps = {
size?: "normal" | "compact" | "invisible";

View File

@ -1,6 +1,6 @@
import { memo } from "react";
import { useTheme } from "next-themes";
import { Giscus } from "@giscus/react";
import { useTheme } from "../../hooks/use-theme";
import { styled } from "../../lib/styles/stitches.config";
import { giscusConfig } from "../../lib/config";
import type { ComponentProps } from "react";

View File

@ -1,7 +1,7 @@
import Head from "next/head";
import { useTheme } from "next-themes";
import Header from "../Header/Header";
import Footer from "../Footer/Footer";
import { useTheme } from "../../hooks/use-theme";
import { styled, theme, darkTheme } from "../../lib/styles/stitches.config";
import type { ComponentProps } from "react";

View File

@ -1,5 +1,5 @@
import { useEffect, useState, memo } from "react";
import { useTheme } from "next-themes";
import { useTheme } from "../../hooks/use-theme";
import { styled } from "../../lib/styles/stitches.config";
import { SunIcon, MoonIcon } from "../Icons";

View File

@ -1,5 +1,5 @@
import { useTheme } from "next-themes";
import { TwitterTweetEmbed } from "react-twitter-embed";
import { useTheme } from "../../hooks/use-theme";
export type TweetEmbedProps = {
id: string;