Fixed the prop drill
This commit was merged in pull request #286.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user