Skip to content

Commit

Permalink
chore: Remove condit. + add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlaa committed Aug 19, 2024
1 parent 9913773 commit 519c09d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function OrganisationFields({
<div className="flex flex-col gap-4">
<TextInputGroup
label={<Trans>Votre organisation</Trans>}
value={organisation?.name}
value={organisation.name}
{...register('name')}
/>
<Select
Expand All @@ -51,7 +51,7 @@ export default function OrganisationFields({
</span>
</p>
}
value={organisation?.organisationType}
value={organisation.organisationType}
{...register('organisationType')}>
{ORGANISATION_TYPES.map((type) => (
<option className="cursor-pointer" key={type} value={type}>
Expand All @@ -70,7 +70,7 @@ export default function OrganisationFields({
</span>
</p>
}
value={organisation?.numberOfCollaborators}
value={organisation.numberOfCollaborators}
{...register('numberOfCollaborators', {
min: {
value: 0,
Expand All @@ -89,7 +89,7 @@ export default function OrganisationFields({
</span>
</p>
}
value={organisation?.administrators?.[0]?.position}
value={organisation.administrators?.[0]?.position}
{...register('position')}
/>{' '}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function PersonalInfoFields({ organisation, register }: Props) {
<div className="flex flex-col gap-4">
<TextInputGroup
label={<Trans>Votre prénom</Trans>}
value={organisation?.administrators?.[0]?.name}
value={organisation.administrators?.[0]?.name}
{...register('administratorName')}
/>

Expand All @@ -30,21 +30,21 @@ export default function PersonalInfoFields({ organisation, register }: Props) {
</span>
</p>
}
value={organisation?.administrators?.[0]?.telephone}
value={organisation.administrators?.[0]?.telephone}
{...register('administratorTelephone')}
/>

<TextInputGroup
label={<Trans>Votre e-mail</Trans>}
value={organisation?.administrators?.[0]?.email}
value={organisation.administrators?.[0]?.email}
{...register('email')}
/>

<div className="w-[32rem]">
<CheckboxInputGroup
size="xl"
defaultChecked={
organisation?.administrators?.[0]?.hasOptedInForCommunications
organisation.administrators?.[0]?.hasOptedInForCommunications
}
label={
<span>
Expand Down
1 change: 1 addition & 0 deletions src/locales/ui/ui-en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1061,3 +1061,4 @@ entries:
Vous devez valider votre changement d'adresse e-mail.: You must confirm your change of e-mail address.
Oups ! Une erreur s'est produite au moment d'envoyer votre code de vérification par email. Vérifiez si votre nouvel e-mail est bien valide et si le problème persiste, n'hésitez pas à <2>nous contacter</2>: Oops! An error occurred when you sent your verification code by email. Please check that your new e-mail is valid and if the problem persists, please <2>contact us</2>
Vous allez recevoir sous peu un e-mail de notre part contenant un <2>code de vérification</2> à entrer dans cette fenêtre.: You will shortly receive an e-mail from us containing a <2>verification code</2> to enter in this window.
Veuillez entrer un nombre positif.: Please enter a positive number.
1 change: 1 addition & 0 deletions src/locales/ui/ui-es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1054,3 +1054,4 @@ entries:
Vous devez valider votre changement d'adresse e-mail.: Debe confirmar su cambio de dirección de correo electrónico.
Vous allez recevoir sous peu un e-mail de notre part contenant un <2>code de vérification</2> à entrer dans cette fenêtre.: En breve recibirá un correo electrónico con un <2>código de verificación</2> que deberá introducir en esta ventana.
Oups ! Une erreur s'est produite au moment d'envoyer votre code de vérification par email. Vérifiez si votre nouvel e-mail est bien valide et si le problème persiste, n'hésitez pas à <2>nous contacter</2>: ¡Uy! Se ha producido un error al enviar su código de verificación por correo electrónico. Por favor, compruebe que su nuevo correo electrónico es válido y si el problema persiste, <2>póngase en contacto con nosotros</2>
Veuillez entrer un nombre positif.: Introduzca un número positivo.
1 change: 1 addition & 0 deletions src/locales/ui/ui-fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -869,3 +869,4 @@ entries:
Vos informations ont bien été mises à jour.: Vos informations ont bien été mises à jour.
Vous allez recevoir sous peu un e-mail de notre part contenant un <2>code de vérification</2> à entrer dans cette fenêtre.: Vous allez recevoir sous peu un e-mail de notre part contenant un <2>code de vérification</2> à entrer dans cette fenêtre.
Vous devez valider votre changement d'adresse e-mail.: Vous devez valider votre changement d'adresse e-mail.
Veuillez entrer un nombre positif.: Veuillez entrer un nombre positif.

0 comments on commit 519c09d

Please sign in to comment.