Install react-hot-toaster

This commit is contained in:
Austin Chen 2022-05-22 14:02:25 -07:00
parent 668d111973
commit 139902f15e
3 changed files with 15 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import clsx from 'clsx' import clsx from 'clsx'
import { BottomNavBar } from './nav/nav-bar' import { BottomNavBar } from './nav/nav-bar'
import Sidebar from './nav/sidebar' import Sidebar from './nav/sidebar'
import { Toaster } from 'react-hot-toast'
export function Page(props: { export function Page(props: {
margin?: boolean margin?: boolean
@ -20,6 +21,7 @@ export function Page(props: {
)} )}
style={suspend ? visuallyHiddenStyle : undefined} style={suspend ? visuallyHiddenStyle : undefined}
> >
<Toaster />
<Sidebar className="sticky top-4 hidden divide-gray-300 self-start pl-2 lg:col-span-2 lg:block" /> <Sidebar className="sticky top-4 hidden divide-gray-300 self-start pl-2 lg:col-span-2 lg:block" />
<main <main
className={clsx( className={clsx(

View File

@ -35,6 +35,7 @@
"react-confetti": "6.0.1", "react-confetti": "6.0.1",
"react-dom": "17.0.2", "react-dom": "17.0.2",
"react-expanding-textarea": "2.3.5", "react-expanding-textarea": "2.3.5",
"react-hot-toast": "^2.2.0",
"react-instantsearch-hooks-web": "6.24.1" "react-instantsearch-hooks-web": "6.24.1"
}, },
"devDependencies": { "devDependencies": {

View File

@ -3056,6 +3056,11 @@ globby@^11.0.4:
merge2 "^1.4.1" merge2 "^1.4.1"
slash "^3.0.0" slash "^3.0.0"
goober@^2.1.1:
version "2.1.9"
resolved "https://registry.yarnpkg.com/goober/-/goober-2.1.9.tgz#0faee08fab1a5d55b23e9ec043bb5a1b46fa025a"
integrity sha512-PAtnJbrWtHbfpJUIveG5PJIB6Mc9Kd0gimu9wZwPyA+wQUSeOeA4x4Ug16lyaaUUKZ/G6QEH1xunKOuXP1F4Vw==
google-auth-library@^7.0.0, google-auth-library@^7.6.1, google-auth-library@^7.9.2: google-auth-library@^7.0.0, google-auth-library@^7.6.1, google-auth-library@^7.9.2:
version "7.11.0" version "7.11.0"
resolved "https://registry.yarnpkg.com/google-auth-library/-/google-auth-library-7.11.0.tgz#b63699c65037310a424128a854ba7e736704cbdb" resolved "https://registry.yarnpkg.com/google-auth-library/-/google-auth-library-7.11.0.tgz#b63699c65037310a424128a854ba7e736704cbdb"
@ -4716,6 +4721,13 @@ react-expanding-textarea@2.3.5:
react-with-forwarded-ref "^0.3.3" react-with-forwarded-ref "^0.3.3"
tslib "^2.0.3" tslib "^2.0.3"
react-hot-toast@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/react-hot-toast/-/react-hot-toast-2.2.0.tgz#ab6f4caed4214b9534f94bb8cfaaf21b051e62b9"
integrity sha512-248rXw13uhf/6TNDVzagX+y7R8J183rp7MwUMNkcrBRyHj/jWOggfXTGlM8zAOuh701WyVW+eUaWG2LeSufX9g==
dependencies:
goober "^2.1.1"
react-instantsearch-hooks-web@6.24.1: react-instantsearch-hooks-web@6.24.1:
version "6.24.1" version "6.24.1"
resolved "https://registry.yarnpkg.com/react-instantsearch-hooks-web/-/react-instantsearch-hooks-web-6.24.1.tgz#392be70c584583f3cd9fe22eda5a59f7449e5ac9" resolved "https://registry.yarnpkg.com/react-instantsearch-hooks-web/-/react-instantsearch-hooks-web-6.24.1.tgz#392be70c584583f3cd9fe22eda5a59f7449e5ac9"