From 663b897179d9b4fca8f4cc37194598409c1c2234 Mon Sep 17 00:00:00 2001 From: Eliezer Basubi Date: Fri, 29 Apr 2022 19:23:57 +0300 Subject: [PATCH] Add initial recoil configs --- package.json | 3 ++- pages/_app.tsx | 7 ++++++- yarn.lock | 12 ++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cd32193..efbfb73 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "graphql-request": "^4.2.0", "next": "12.1.5", "react": "18.1.0", - "react-dom": "18.1.0" + "react-dom": "18.1.0", + "recoil": "^0.7.2" }, "devDependencies": { "@types/node": "17.0.29", diff --git a/pages/_app.tsx b/pages/_app.tsx index 0edc8e3..6b99214 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -2,9 +2,14 @@ import type { AppProps } from "next/app"; import "antd/dist/antd.min.css"; import "../styles/globals.css"; +import { RecoilRoot } from "recoil"; const MyApp = ({ Component, pageProps }: AppProps) => { - return ; + return ( + + + + ); }; export default MyApp; diff --git a/yarn.lock b/yarn.lock index 9477937..b45dfad 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1820,6 +1820,11 @@ graphql@^16.4.0: resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.4.0.tgz#bb10b1b4683045dedcb67000eb4ad134a36c59e6" integrity sha512-tYDNcRvKCcfHREZYje3v33NSrSD/ZpbWWdPtBtUUuXx9NCo/2QDxYzNqCnMvfsrnbwRpEHMovVrPu/ERoLrIRg== +hamt_plus@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/hamt_plus/-/hamt_plus-1.0.2.tgz#e21c252968c7e33b20f6a1b094cd85787a265601" + integrity sha1-4hwlKWjH4zsg9qGwlM2FeHomVgE= + has-bigints@^1.0.1, has-bigints@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" @@ -3101,6 +3106,13 @@ readdirp@~3.6.0: dependencies: picomatch "^2.2.1" +recoil@^0.7.2: + version "0.7.2" + resolved "https://registry.yarnpkg.com/recoil/-/recoil-0.7.2.tgz#37aafc9e0674abae639263354a11c910e71bf78a" + integrity sha512-OT4pI7FOUHcIoRtjsL5Lqq+lFFzQfir4MIbUkqyJ3nqv3WfBP1pHepyurqTsK5gw+T+I2R8+uOD28yH+Lg5o4g== + dependencies: + hamt_plus "1.0.2" + regenerator-runtime@^0.13.4: version "0.13.9" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"