feat: update index page

This commit is contained in:
JustSong
2022-11-22 18:43:17 +08:00
parent 2acc56e03c
commit f2a296cd87
5 changed files with 120 additions and 55 deletions
+20
View File
@@ -0,0 +1,20 @@
export const reducer = (state, action) => {
switch (action.type) {
case 'set':
return {
...state,
status: action.payload,
};
case 'unset':
return {
...state,
status: undefined,
};
default:
return state;
}
};
export const initialState = {
status: undefined,
};