feat: Initial setup of theme.

This commit is contained in:
vikrant k
2022-01-13 22:28:45 +05:30
parent aaa083c184
commit fd2d9fa882
371 changed files with 17971 additions and 100 deletions

17
src/redux/index.js Normal file
View File

@@ -0,0 +1,17 @@
import { combineReducers } from 'redux';
import { authReducer } from './AuthRedux';
// Combine all reducers.
const appReducer = combineReducers({
auth: authReducer
});
const rootReducer = (state, action) => {
// Clear all data in redux store to initial.
if (action.type === 'LOGOUT') {
state = undefined;
}
return appReducer(state, action);
};
export default rootReducer;