Index page is done

This commit is contained in:
JustSong
2023-04-23 20:00:47 +08:00
parent 78b4acddc6
commit 09be65e035
5 changed files with 120 additions and 56 deletions

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,
};