Fixed the prop drill

This commit was merged in pull request #286.
This commit is contained in:
2023-07-10 19:22:03 +01:00
parent 2e25b33110
commit 6daa4d6d43
5 changed files with 36 additions and 24 deletions
+2 -1
View File
@@ -32,6 +32,7 @@ const initialState = {
error: false,
};
// Currently learning better about useReducer, so I converted this since it seemed like something complex
const reducer = (state, action) => {
switch (action.type) {
case "FETCH_SUCCESS":
@@ -173,4 +174,4 @@ const WalletRoutes = () => {
);
};
export default WalletRoutes;
export default WalletRoutes;