mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: scratchpad sidebar
This commit is contained in:
1 parent
981f8a4b9d
commit
e3a5543d9f
14 files changed
+239
-65
No files matched your search
@@ -0,0 +1,10 @@
|
||||
export default function reducer(state = {}, action) {
|
||||
if (action.type === 'SCRATCHPAD_STATE_UPDATE') {
|
||||
const { key, value } = action.payload;
|
||||
return {
|
||||
...state,
|
||||
[key]: value,
|
||||
};
|
||||
}
|
||||
return state;
|
||||
}
|
||||
Reference in new issue
Block a user