Fix bug Ask Discord; Update register form

This commit is contained in:
pikiou 2022-04-22 16:06:51 +02:00
parent 99700e4474
commit 514cf1b833
3 changed files with 11 additions and 9 deletions

View File

@ -11,7 +11,7 @@ import {
export function AskDiscord(asks: JSX.Element[], id: number): void {
const { dispatch, jwtToken, volunteerAsks } = useAskTools()
const discordId: number | undefined = useSelector(selectVolunteerDiscordId)
const discordId: string | undefined = useSelector(selectVolunteerDiscordId)
const onSubmit = useCallback((): void => {
dispatch(

View File

@ -448,7 +448,7 @@ const RegisterForm = ({ dispatch }: Props): JSX.Element => {
répondre à toutes tes questions liées au bénévolat ou au festival.
</p>
<p>
Ces rencontres ont lieu dans un bar/resto calme à Châtelet, le{" "}
Ces rencontres ont lieu à 19h dans un bar/resto calme à Châtelet, le{" "}
<a
href="https://goo.gl/maps/N5NYWDF66vNQDFMh8"
target="_blank"
@ -470,8 +470,10 @@ const RegisterForm = ({ dispatch }: Props): JSX.Element => {
<div className={styles.rightCol}>
<div className={styles.rightColContainer}>
{[
{ value: "20avril", desc: "Mercredi 20 avril à 19h" },
{ value: "13mai", desc: "Vendredi 13 mai à 19h30" },
{ value: "13mai", desc: "Vendredi 13 mai" },
{ value: "24mai", desc: "Mardi 24 mai" },
{ value: "1juin", desc: "Mercredi 1er juin" },
{ value: "9juin", desc: "Jeudi 9 juin" },
{ value: "", desc: "Aucune date possible" },
].map((option) => (
<label className={styles.longAnswerLabel} key={option.value}>
@ -718,7 +720,7 @@ const RegisterForm = ({ dispatch }: Props): JSX.Element => {
</div>
<div className={styles.rightCol}>
<div className={styles.rightColContainer}>
{["Email", "SMS", "WhatsApp", "Signal", "Appel", "Aucun"].map((option) => (
{["WhatsApp", "Signal", "SMS", "Email", "Appel", "Aucun"].map((option) => (
<label className={styles.shortAnswerLabel} key={option}>
<input
type="radio"
@ -737,12 +739,12 @@ const RegisterForm = ({ dispatch }: Props): JSX.Element => {
<dl className={styles.registerIntro}>
<dd>
<p>
Aïe ça va poser problème, je suis désolé. Il faut faire un effort en
choisissant un moyen de communication proposé.
Aïe ça va poser problème, je suis désolé. Il faut qu'on puisse te
contacter par l'un des moyens de communication proposés.
</p>
<p>
Tu en connais un suffisamment répandu et meilleur que ceux proposés ?
Parle-nous en à benevoles@parisestludique.fr :)
Parle-nous en à benevoles@parisestludique.fr !!
</p>
</dd>
</dl>

View File

@ -61,5 +61,5 @@ export const fetchVolunteerDiscordIdIfNeed =
export const selectVolunteerDiscordId = createSelector(
(state: AppState) => state,
(state): number | undefined => state.volunteerDiscordId?.entity?.id
(state): string | undefined => state.volunteerDiscordId?.entity?.discordId
)