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:
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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";
|
||||
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user