From 963edbbbc195cd7306be530c97f5270b5b431904 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Sat, 4 Nov 2023 15:00:49 +0100 Subject: [PATCH] Add User definition --- client/src/definitions.ts | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/client/src/definitions.ts b/client/src/definitions.ts index 32c4da0..6c21926 100644 --- a/client/src/definitions.ts +++ b/client/src/definitions.ts @@ -399,19 +399,11 @@ export const editTypes: { [key: string]: { [key: string]: any } } = { name: 'System', 'users': { name: 'User', - validationSchema: toFormValidator( - zod.object({ - }), - ), - sections: [ - { - fields: [ - { key: 'name', label: 'Name', as: 'TextBox' }, - { key: 'password', label: 'Password', as: 'TextBox', props: { type: 'password' } }, - { key: 'comment', label: 'Comment', as: 'MultilineTextBox' }, - ], - }, - ], + fields: { + name: { is: 'TextBox', label: 'Name'}, + password: { is: 'TextBox', label: 'Password'}, + comment: { is: 'MultilineTextBox', label: 'Comment'}, + }, }, }, }; \ No newline at end of file