Skip to content

Commit

Permalink
signup empresa
Browse files Browse the repository at this point in the history
  • Loading branch information
Kojimena committed Nov 15, 2023
1 parent c4bc902 commit 9a8fcc2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
8 changes: 8 additions & 0 deletions uniEmpleos/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,13 @@
},
"previewPostulations":{
"delete": "Delete Postulation"
},
"signUpEmpresa":{
"name": "Name",
"email": "Email",
"password": "Password",
"phone": "Phone",
"details": "Details",
"register": "Register"
}
}
8 changes: 8 additions & 0 deletions uniEmpleos/src/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@
},
"previewPostulations":{
"delete": "Eliminar Postulación"
},
"signUpEmpresa":{
"name": "Nombre",
"email": "Correo",
"password": "Contraseña",
"phone": "Teléfono",
"details": "Detalles",
"register": "Registrarse"
}

}
14 changes: 8 additions & 6 deletions uniEmpleos/src/pages/SignUpEmpresa/SignUpEmpresa.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ import InputFile from "../../components/InputFile/InputFile"
import { AiOutlineCloudDownload } from "react-icons/ai"
import { TbEdit } from "react-icons/tb"
import Loader from "../../components/Loader/Loader"
import { useTranslation } from "react-i18next"

const SignUpEmpresa = () => {
const { t } = useTranslation()
const { dispatch } = useStoreon("user")
const { user } = useStoreon("user")
const api = useApi()
Expand Down Expand Up @@ -175,7 +177,7 @@ const SignUpEmpresa = () => {
<div className={style.dataContainer}>
<div className={style.dataGroup2Container}>
<div className={style.nameContainer}>
<span>Nombre</span>
<span>{t("signUpEmpresa.name")}</span>
<ComponentInput
name="nombre"
type="text"
Expand All @@ -185,7 +187,7 @@ const SignUpEmpresa = () => {
/>
</div>
<div className={style.phoneContainer}>
<span>Telefono</span>
<span>{t("signUpEmpresa.phone")}</span>
<ComponentInput
value={telefono}
name="telefono"
Expand All @@ -195,7 +197,7 @@ const SignUpEmpresa = () => {
/>
</div>
<div className={style.emailContainer}>
<span>Correo</span>
<span>{t("signUpEmpresa.email")}</span>
<ComponentInput
name="correo"
type="text"
Expand All @@ -205,7 +207,7 @@ const SignUpEmpresa = () => {
/>
</div>
<div className={style.passwordContainer}>
<span>Contraseña</span>
<span>{t("signUpEmpresa.password")}</span>
<ComponentInput
name="password"
type="password"
Expand All @@ -219,7 +221,7 @@ const SignUpEmpresa = () => {
</div>
<div className={style.dataGroup1Container}>
<div className={style.inputTextArea}>
<span>Detalles</span>
<span>{t("signUpEmpresa.details")}</span>
<TextArea
name="detalles"
type="text"
Expand All @@ -232,7 +234,7 @@ const SignUpEmpresa = () => {
</div>
</div>
<div className={style.buttonContainer}>
<Button label="Registrarse" onClick={signup} />
<Button label={t("signUpEmpresa.register")} onClick={signup} />
</div>
</div>
</div>
Expand Down

0 comments on commit 9a8fcc2

Please sign in to comment.