1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-30 01:26:37 -04:00

move useMedia hook here but without SSR warning

This commit is contained in:
2022-07-24 22:41:02 -04:00
parent ac9a5dfcff
commit 37feb305ff
8 changed files with 201 additions and 131 deletions

View File

@ -1,5 +1,6 @@
import { createContext, useCallback, useEffect, useState } from "react";
import { useLocalStorage, useMedia } from "react-use";
import { useLocalStorage } from "react-use";
import { useMedia } from "../hooks/use-media";
import { themeStorageKey } from "../lib/styles/stitches.config";
import type { Context, PropsWithChildren } from "react";