mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-09 17:14:21 +02:00
Fix bug Ask Discord; Update register form
This commit is contained in:
parent
99700e4474
commit
514cf1b833
@ -11,7 +11,7 @@ import {
|
|||||||
|
|
||||||
export function AskDiscord(asks: JSX.Element[], id: number): void {
|
export function AskDiscord(asks: JSX.Element[], id: number): void {
|
||||||
const { dispatch, jwtToken, volunteerAsks } = useAskTools()
|
const { dispatch, jwtToken, volunteerAsks } = useAskTools()
|
||||||
const discordId: number | undefined = useSelector(selectVolunteerDiscordId)
|
const discordId: string | undefined = useSelector(selectVolunteerDiscordId)
|
||||||
|
|
||||||
const onSubmit = useCallback((): void => {
|
const onSubmit = useCallback((): void => {
|
||||||
dispatch(
|
dispatch(
|
||||||
|
@ -448,7 +448,7 @@ const RegisterForm = ({ dispatch }: Props): JSX.Element => {
|
|||||||
répondre à toutes tes questions liées au bénévolat ou au festival.
|
répondre à toutes tes questions liées au bénévolat ou au festival.
|
||||||
</p>
|
</p>
|
||||||
<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
|
<a
|
||||||
href="https://goo.gl/maps/N5NYWDF66vNQDFMh8"
|
href="https://goo.gl/maps/N5NYWDF66vNQDFMh8"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@ -470,8 +470,10 @@ const RegisterForm = ({ dispatch }: Props): JSX.Element => {
|
|||||||
<div className={styles.rightCol}>
|
<div className={styles.rightCol}>
|
||||||
<div className={styles.rightColContainer}>
|
<div className={styles.rightColContainer}>
|
||||||
{[
|
{[
|
||||||
{ value: "20avril", desc: "Mercredi 20 avril à 19h" },
|
{ value: "13mai", desc: "Vendredi 13 mai" },
|
||||||
{ value: "13mai", desc: "Vendredi 13 mai à 19h30" },
|
{ value: "24mai", desc: "Mardi 24 mai" },
|
||||||
|
{ value: "1juin", desc: "Mercredi 1er juin" },
|
||||||
|
{ value: "9juin", desc: "Jeudi 9 juin" },
|
||||||
{ value: "", desc: "Aucune date possible" },
|
{ value: "", desc: "Aucune date possible" },
|
||||||
].map((option) => (
|
].map((option) => (
|
||||||
<label className={styles.longAnswerLabel} key={option.value}>
|
<label className={styles.longAnswerLabel} key={option.value}>
|
||||||
@ -718,7 +720,7 @@ const RegisterForm = ({ dispatch }: Props): JSX.Element => {
|
|||||||
</div>
|
</div>
|
||||||
<div className={styles.rightCol}>
|
<div className={styles.rightCol}>
|
||||||
<div className={styles.rightColContainer}>
|
<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}>
|
<label className={styles.shortAnswerLabel} key={option}>
|
||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -737,12 +739,12 @@ const RegisterForm = ({ dispatch }: Props): JSX.Element => {
|
|||||||
<dl className={styles.registerIntro}>
|
<dl className={styles.registerIntro}>
|
||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>
|
||||||
Aïe ça va poser problème, je suis désolé. Il faut faire un effort en
|
Aïe ça va poser problème, je suis désolé. Il faut qu'on puisse te
|
||||||
choisissant un moyen de communication proposé.
|
contacter par l'un des moyens de communication proposés.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Tu en connais un suffisamment répandu et meilleur que ceux proposés ?
|
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>
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
@ -61,5 +61,5 @@ export const fetchVolunteerDiscordIdIfNeed =
|
|||||||
|
|
||||||
export const selectVolunteerDiscordId = createSelector(
|
export const selectVolunteerDiscordId = createSelector(
|
||||||
(state: AppState) => state,
|
(state: AppState) => state,
|
||||||
(state): number | undefined => state.volunteerDiscordId?.entity?.id
|
(state): string | undefined => state.volunteerDiscordId?.entity?.discordId
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user