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:
@ -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 => {
|
||||
|
Reference in New Issue
Block a user