Display avatar

This commit is contained in:
MD. Ariful Alam committed 2021-08-21 21:57:26 +06:00
1 parent e6935a32b9
commit ec5344f0c9
9 files changed
+454 -12977

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { createSlice } from '@reduxjs/toolkit';
const initialState = true;
export const loadingSlice = createSlice({
name: 'loading',
initialState: initialState,
reducers: {
setLoading: (state, action) => {
state = action.payload;
return state;
}
}
})
export const { setLoading } = loadingSlice.actions;
export default loadingSlice.reducer;
+2
View File
@@ -1,10 +1,12 @@
import { combineReducers, configureStore } from '@reduxjs/toolkit';
import loadingSlice from './slices/loadingSlice';
import profileSlice from './slices/profileSlice';
import themeSlice from './slices/themeSlice';
const rootReducer = combineReducers({
profile: profileSlice,
theme: themeSlice,
loading: loadingSlice,
})
export const store = configureStore({