diff --git a/package.json b/package.json index 70e911c..1349266 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "react": "^16.13.1", "react-dom": "^16.13.1", "react-redux": "^7.2.0", + "react-redux-firebase": "^3.4.0", "react-router-dom": "^5.2.0", "react-scripts": "3.4.1", "typescript": "~3.7.2" diff --git a/src/store/index.ts b/src/store/index.ts index 746f2f4..f7b540b 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -1,9 +1,13 @@ +// Redux import {configureStore} from '@reduxjs/toolkit'; import authReducer from './auth/'; +// Firebase +import {firebaseReducer} from 'react-redux-firebase'; const store = configureStore({ reducer: { auth: authReducer, + firebase: firebaseReducer, }, }); diff --git a/yarn.lock b/yarn.lock index 171cea9..ceec826 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5366,7 +5366,7 @@ hmac-drbg@^1.0.0: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.1" -hoist-non-react-statics@^3.1.0, hoist-non-react-statics@^3.3.0: +hoist-non-react-statics@^3.1.0, hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.2: version "3.3.2" resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45" integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw== @@ -9165,6 +9165,15 @@ react-is@^16.12.0, react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1, react-i resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== +react-redux-firebase@^3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/react-redux-firebase/-/react-redux-firebase-3.4.0.tgz#acf317a3c3912ae2eb5a25aa252087ac5ca6abe2" + integrity sha512-wT+39Qsb7D5CIVzaPHxbSq9ti4FkdDpXp79ZpESS1cq8NQOywkFnybi1PVUD3Owj9yz1SeiclxIXPejqSZ9SGw== + dependencies: + hoist-non-react-statics "^3.3.2" + lodash "^4.17.15" + prop-types "^15.7.2" + react-redux@^7.2.0: version "7.2.0" resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-7.2.0.tgz#f970f62192b3981642fec46fd0db18a074fe879d"