diff --git a/src/pages/private/admin/questions/listQuestion.jsx b/src/pages/private/admin/questions/listQuestion.jsx index 241acdc..4bfbc21 100644 --- a/src/pages/private/admin/questions/listQuestion.jsx +++ b/src/pages/private/admin/questions/listQuestion.jsx @@ -36,9 +36,7 @@ const ListQuestions = ({ onKeyDown={handleKeyPress} /> {inputValidationAlert.apply && ( - - {inputValidationAlert.message} - + {inputValidationAlert.message} )}
diff --git a/src/pages/private/user/messages/index.jsx b/src/pages/private/user/messages/index.jsx index 2335de0..e654fe3 100644 --- a/src/pages/private/user/messages/index.jsx +++ b/src/pages/private/user/messages/index.jsx @@ -51,9 +51,7 @@ class PeopleCards extends Component { filterPeople = (e) => { const people = this.state.persons.filter( (person) => - person.name - .toLowerCase() - .search(e.target.value.trim().toLowerCase()) !== -1, + person.name.toLowerCase().search(e.target.value.trim().toLowerCase()) !== -1, ); this.setState({ people, NoSearchResults: !people.length }); }; @@ -74,10 +72,7 @@ class PeopleCards extends Component { return this.setState({ people: persons.filter((e) => { if (sectionSelect !== 'ALL') { - return ( - e.department === input.value && - e.section === sectionSelect - ); + return e.department === input.value && e.section === sectionSelect; } return e.department === input.value; }), @@ -101,10 +96,7 @@ class PeopleCards extends Component { return this.setState({ people: persons.filter((e) => { if (departmentSelect !== 'ALL') { - return ( - e.section === input.value && - e.department === departmentSelect - ); + return e.section === input.value && e.department === departmentSelect; } return e.section === input.value; }), @@ -113,13 +105,8 @@ class PeopleCards extends Component { }; render() { - const { - ProgressBar, - departments, - sections, - people, - NoSearchResults, - } = this.state; + const { ProgressBar, departments, sections, people, NoSearchResults } = + this.state; return ( <> diff --git a/src/pages/private/user/messages/modal.jsx b/src/pages/private/user/messages/modal.jsx index f463160..ac17af8 100644 --- a/src/pages/private/user/messages/modal.jsx +++ b/src/pages/private/user/messages/modal.jsx @@ -13,13 +13,19 @@ import { apiUrl, endPoints } from '../../../../config.json'; import http from '../../../../services/httpService'; import { NotifyAlert, TimerAlert } from '../../../../components'; -const ModalBox = ({ personId, personName, toggleOpen, triggerModal, modalValue }) => { +const ModalBox = ({ + personId, + personName, + toggleOpen, + triggerModal, + modalValue, +}) => { const [ModalValue, setModalValue] = useState(() => modalValue); const [isAnonymous, setIsAnonymous] = useState(false); useEffect(() => { - setModalValue(modalValue) - }, [modalValue]) + setModalValue(modalValue); + }, [modalValue]); const handleSubmit = () => { const messageObject = { @@ -54,9 +60,7 @@ const ModalBox = ({ personId, personName, toggleOpen, triggerModal, modalValue
-

- Write a nice message for {personName} :) -

+

Write a nice message for {personName} :)