diff --git a/src/components/VolunteerBoard/DDayInformations/DDaysInformations.tsx b/src/components/VolunteerBoard/DDayInformations/DDaysInformations.tsx new file mode 100644 index 0000000..45ab31a --- /dev/null +++ b/src/components/VolunteerBoard/DDayInformations/DDaysInformations.tsx @@ -0,0 +1,76 @@ +import { FC, memo, useCallback, useRef, useState } from "react" +import styles from "./styles.module.scss" + +const sizes = ["XS", "S", "M", "L", "XL", "XXL"] + +const DDayInformations: FC = (): JSX.Element | null => { + const sizeRef = useRef(null) + const dietRef = useRef(null) + const ageRef = useRef(null) + const commentRef = useRef(null) + const [has2Shirts, setHas2Shirts] = useState(null) + + const onSubmit = useCallback(() => { + console.log("on submit") + }, []) + + const onHas2ShirtsClick = useCallback( + (value) => { + setHas2Shirts(value) + }, + [setHas2Shirts] + ) + + return ( +
+
Informations pour le festival
+
+
J'ai déjà 2 t-shirts
+ + + {has2Shirts === false && ( +
+ + +
+ )} +
+
+ + +
+
+ + +
+
+ +