From d58b301cc3b50a1ff1453d94a843c30b5fada9a0 Mon Sep 17 00:00:00 2001 From: chandler Date: Mon, 23 Sep 2024 20:57:32 -0700 Subject: [PATCH] updated projectform.jsx --- client/src/components/ProjectForm.jsx | 36 ++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/client/src/components/ProjectForm.jsx b/client/src/components/ProjectForm.jsx index d0c4efc0..afea55fb 100644 --- a/client/src/components/ProjectForm.jsx +++ b/client/src/components/ProjectForm.jsx @@ -281,7 +281,7 @@ export default function ProjectForm({ !isEdit ? 'secondary' : !editMode ? 'contained' : 'secondary' } cursor="pointer" - disabled={isEdit && !isLoading ? !editMode : false} + disabled={isEdit && isLoading ? !editMode : false} > {isLoading ? : 'Save'} @@ -302,10 +302,40 @@ export default function ProjectForm({ ) : ( - '' + + {' '} +
{ + isEdit ? submitEditProject(data) : submitNewProject(data); + })} + > + {arr.map((input) => ( + + ))} + + + {''} +
)} ) : ( ); -} +} \ No newline at end of file