Skip to content
Snippets Groups Projects
Commit 27956e21 authored by julien.debray's avatar julien.debray
Browse files

Correction inscription

parent 0acf17ba
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ const Inscription = () => {
const [passwordConfirmation, setPasswordConfirmation] = useState('');
const [passwordConfirmationError, setPasswordConfirmationError] = useState(false);
const [gender, setGender] = useState('Homme');
const [birthDate, setBirthDate] = useState('');
const [birthDate, setBirthDate] = useState(new Date());
const [birthDateError, setBirthDateError] = useState(false);
const [size, setSize] = useState('');
const [sizeError, setSizeError] = useState(false);
......@@ -296,9 +296,9 @@ const Inscription = () => {
</label>
<DatePicker
className="bg-gray-200 border rounded text-xs font-medium leading-none text-gray-800 py-3 w-full pl-3 mt-2"
selected={new Date()}
selected={birthDate}
onChange={(e) => {
setBirthDate(e.target.value);
setBirthDate(e);
setBirthDateError(false);
}}
maxDate={new Date()}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment