chore(build): move to react 18 + vite

This commit is contained in:
rektdeckard
2023-02-02 22:15:00 -07:00
parent ced8732edb
commit 1b8d6c48fc
46 changed files with 198 additions and 450 deletions

View File

@@ -1,21 +1,18 @@
import React from "react";
import { ReactNode } from "react";
import { motion } from "framer-motion";
import { useRecoilValue } from "recoil";
import { isDarkThemeSelector } from "../../state/selectors";
import { searchQueryAtom } from "../../state/atoms";
import { HourglassMedium, Question, SmileyXEyes } from "phosphor-react";
import { isDarkThemeSelector } from "@/state/selectors";
import { searchQueryAtom } from "@/state/atoms";
interface NoticeProps {
message?: string;
type?: "wait" | "help" | "warn" | "none";
children?: ReactNode;
}
const Notice: React.FC<NoticeProps> = ({
message,
type = "warn",
children,
}) => {
const Notice = ({ message, type = "warn", children }: NoticeProps) => {
const isDark = useRecoilValue(isDarkThemeSelector);
const query = useRecoilValue(searchQueryAtom);

View File

@@ -0,0 +1 @@
export { default } from "./Notice";