diff --git a/components/CopyField.jsx b/components/CopyField.jsx index ebb1e02..b4b29e1 100644 --- a/components/CopyField.jsx +++ b/components/CopyField.jsx @@ -21,6 +21,7 @@ const CopyField = (props) => { new ClipboardJS('.btn'); } + return (
diff --git a/components/Error.jsx b/components/Error.jsx index dc855db..9f30dfd 100644 --- a/components/Error.jsx +++ b/components/Error.jsx @@ -5,11 +5,11 @@ import { useTranslation } from "next-i18next"; const Error = (props) => { const { t } = useTranslation(); return ( - + - logo + logo @@ -19,15 +19,15 @@ const Error = (props) => { - + - {t("common.backHomepage")} + {t("common.backHomepage")} - + {t("resource.help")} diff --git a/components/form/CandidateField.jsx b/components/form/CandidateField.jsx index a642b52..91a3832 100644 --- a/components/form/CandidateField.jsx +++ b/components/form/CandidateField.jsx @@ -42,34 +42,6 @@ const CandidateField = ({avatar, label, description, candIndex, onDelete, onAdd, } useEffect(() => { setClassName("candidateButton " + (selected ? "candidateAdded" : "")) -<<<<<<< HEAD -}, [selected] ); -useEffect(() => { - setPlusIcon("mr-2 cursorPointer " + (selected ? "trashIcon" : "")) -}, [selected] ); -useEffect(() => { - setTrashIcon("trashIcon " + (selected ? "displayTrash" : "")) -}, [selected] ); - -const addFunction = () => { - addCandidate(); - setSelectedState(!selected); -}; -const deleteFunction = () => { - onDelete(); - toggle(); -} - - const [image, setImage] = useState(null); - const [createObjectURL, setCreateObjectURL] = useState(null); - const uploadToClient = (event) => { - if (event.target.files && event.target.files[0]) { - const i = event.target.files[0]; - setImage(i); - setCreateObjectURL(URL.createObjectURL(i)); - } - }; -======= }, [selected]); useEffect(() => { setPlusIcon("mr-2 cursorPointer " + (selected ? "trashIcon" : "")) @@ -82,6 +54,10 @@ const deleteFunction = () => { addCandidate(); setSelectedState(!selected); } + const removeCandidate = () => { + onDelete(); + toggle(); + } @@ -98,7 +74,6 @@ const deleteFunction = () => { ->>>>>>> 102b62636454308245aa839e42a8387359101d1d } }; @@ -182,13 +157,8 @@ const deleteFunction = () => { autoFocus /> -<<<<<<< HEAD - - -======= - ->>>>>>> 102b62636454308245aa839e42a8387359101d1d + -======= ->>>>>>> 102b62636454308245aa839e42a8387359101d1d diff --git a/styles/scss/_homePage.scss b/styles/scss/_homePage.scss index 34d1bf8..aefd6c7 100644 --- a/styles/scss/_homePage.scss +++ b/styles/scss/_homePage.scss @@ -51,9 +51,7 @@ border-radius: 0%; color: #FFFFFF; } - .sectionOneHomeInput::after { - content: '100'; - } + .sectionOneHomeInput::placeholder { color: #C3BFD8; }