diff --git a/server/doky-front/src/components/formComponents/FormInput.jsx b/server/doky-front/src/components/formComponents/FormInput.jsx index dbfc9afc..8f30f358 100644 --- a/server/doky-front/src/components/formComponents/FormInput.jsx +++ b/server/doky-front/src/components/formComponents/FormInput.jsx @@ -19,8 +19,9 @@ const FormInput = ({label, id, type, value = '', onChange = noop, errors}) => {
- + {hasErrors ?
{errors.map((message) => (
{message}
))} diff --git a/server/doky-front/src/components/formComponents/HorizontalFormInput.jsx b/server/doky-front/src/components/formComponents/HorizontalFormInput.jsx index c82562e9..30dc920d 100644 --- a/server/doky-front/src/components/formComponents/HorizontalFormInput.jsx +++ b/server/doky-front/src/components/formComponents/HorizontalFormInput.jsx @@ -18,9 +18,10 @@ const HorizontalFormInput = ({label, id, type, value = '', disabled = false, onC
- + {hasErrors ?
{errors.map((message) => (
{message}
))} diff --git a/server/doky-front/src/components/formComponents/HorizontalFormText.jsx b/server/doky-front/src/components/formComponents/HorizontalFormText.jsx index 00ba80d6..5aa86601 100644 --- a/server/doky-front/src/components/formComponents/HorizontalFormText.jsx +++ b/server/doky-front/src/components/formComponents/HorizontalFormText.jsx @@ -7,13 +7,13 @@ const getClampedRowsCount = (str, min, max) => { }; const HorizontalFormText = ({ - label, - id, - minRows = 3, - maxRows = 10, - value = '', - onChange = noop - }) => { + label, + id, + minRows = 3, + maxRows = 10, + value = '', + onChange = noop +}) => { const handleOnChange = useCallback(event => { event.preventDefault(); diff --git a/server/doky-front/src/pages/Documents/CreateDocumentForm/CreateDocumentForm.jsx b/server/doky-front/src/pages/Documents/CreateDocumentForm/CreateDocumentForm.jsx index 9392692a..fce5f936 100644 --- a/server/doky-front/src/pages/Documents/CreateDocumentForm/CreateDocumentForm.jsx +++ b/server/doky-front/src/pages/Documents/CreateDocumentForm/CreateDocumentForm.jsx @@ -29,10 +29,12 @@ const CreateDocumentForm = ({onCreated}) => { <> {globalError ? : null}
- - + +
diff --git a/server/doky-front/src/pages/Documents/Documents.jsx b/server/doky-front/src/pages/Documents/Documents.jsx index 0bef7338..26f55fee 100644 --- a/server/doky-front/src/pages/Documents/Documents.jsx +++ b/server/doky-front/src/pages/Documents/Documents.jsx @@ -28,25 +28,26 @@ const Documents = () => {
- - - - - + + + + + - {!isLoading ? data.map?.((document) => ( - - - - - - )) : 'Loading'} + {!isLoading ? data.map?.((document) => ( + + + + + + )) : 'Loading'}
ActionsNameModified Date
ActionsNameModified Date
- - {document.name}{document.modifiedDate}
+ + {document.name}{document.modifiedDate}
diff --git a/server/doky-front/src/pages/Documents/EditDocumentForm/EditDocumentForm.jsx b/server/doky-front/src/pages/Documents/EditDocumentForm/EditDocumentForm.jsx index c3feafa0..5e04f1fe 100644 --- a/server/doky-front/src/pages/Documents/EditDocumentForm/EditDocumentForm.jsx +++ b/server/doky-front/src/pages/Documents/EditDocumentForm/EditDocumentForm.jsx @@ -22,9 +22,9 @@ const EditDocumentForm = ({document}) => { {globalError ? : null} + errors={name.errors}/> + onChange={description.setValue}/>
File:
{document.fileName}
diff --git a/server/doky-front/src/pages/Login/Login.jsx b/server/doky-front/src/pages/Login/Login.jsx index 8d69f9ef..3074cc69 100644 --- a/server/doky-front/src/pages/Login/Login.jsx +++ b/server/doky-front/src/pages/Login/Login.jsx @@ -32,9 +32,9 @@ const Login = () => { + errors={uid.errors}/> + errors={password.errors}/>
Register diff --git a/server/doky-front/src/pages/Register/Register.jsx b/server/doky-front/src/pages/Register/Register.jsx index a7bbcdea..982da451 100644 --- a/server/doky-front/src/pages/Register/Register.jsx +++ b/server/doky-front/src/pages/Register/Register.jsx @@ -31,9 +31,9 @@ const Register = () => { + errors={uid.errors}/> + errors={password.errors}/>
Login diff --git a/server/doky-front/src/pages/UserProfile/EditUserProfileForm/EditUserProfileForm.jsx b/server/doky-front/src/pages/UserProfile/EditUserProfileForm/EditUserProfileForm.jsx index 1552fee1..ab02b681 100644 --- a/server/doky-front/src/pages/UserProfile/EditUserProfileForm/EditUserProfileForm.jsx +++ b/server/doky-front/src/pages/UserProfile/EditUserProfileForm/EditUserProfileForm.jsx @@ -20,7 +20,7 @@ const EditUserProfileForm = ({user}) => { {globalError ? : null} + onChange={uid.setValue}/>