1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Basic account page works

This commit is contained in:
Zhiyuan Zheng
2020-10-28 00:02:37 +01:00
parent 3f8e451099
commit a6e33d8b0a
17 changed files with 458 additions and 169 deletions

View File

@ -16,18 +16,13 @@ const accountInitState = {
status: 'idle'
}
export const getState = state => state.account
export const retrive = state => state.account
export const accountSlice = createSlice({
name: 'account',
initialState: {
account: {},
status: 'idle'
},
initialState: accountInitState,
reducers: {
reset: state => {
state.account = accountInitState
}
reset: () => accountInitState
},
extraReducers: {
[fetch.pending]: state => {