added search, unified controls and input elements, rendering improved

This commit is contained in:
2022-03-12 23:54:14 +01:00
parent a0adef9ec5
commit 32e6018415
17 changed files with 5039 additions and 25560 deletions
+2 -2
View File
@@ -18,12 +18,12 @@ export const sessionReducer = (state, action) => {
export const userTableReducer = (state, action) => {
let user = action.user;
switch (action.type) {
case 'create': return [...state, { line: state.length, ...user }]
case 'create': return [...state, { line: state.length, ...user }];
case 'delete': {
let newstate = [];
let newindex = 0;
state.forEach((u, i) => {
if (user.uid && u.uid != user.uid|| user.line && i != user.line )
if (user.uid && u.uid != user.uid || user.line && i != user.line)
newstate.push({ ...u, line: newindex++ })
return newstate;
}, []);