From 7792616e2ea1c58f2a41226b2a1ca10f10deb8a0 Mon Sep 17 00:00:00 2001 From: Adel LAKHDAR <alakhdar@grandlyon.com> Date: Tue, 28 May 2024 14:26:12 +0000 Subject: [PATCH] chore(UI): swap month and year selection in profileTypeFormDateSelection --- .../ProfileTypeFormDateSelection.tsx | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/ProfileType/ProfileTypeFormDateSelection/ProfileTypeFormDateSelection.tsx b/src/components/ProfileType/ProfileTypeFormDateSelection/ProfileTypeFormDateSelection.tsx index fb08b5857..a3d7d056e 100644 --- a/src/components/ProfileType/ProfileTypeFormDateSelection/ProfileTypeFormDateSelection.tsx +++ b/src/components/ProfileType/ProfileTypeFormDateSelection/ProfileTypeFormDateSelection.tsx @@ -133,21 +133,6 @@ const ProfileTypeFormDateSelection = ({ </div> {answer !== null && ( <div className="select-container"> - <div className="date-select"> - <Select - labelId="selectYearDate" - className="year" - defaultValue={selectedYear} - value={selectedYear} - onChange={e => handleSelectYear(e)} - > - {selectYears.map(year => ( - <MenuItem value={year} key={year} className="date-option"> - {year} - </MenuItem> - ))} - </Select> - </div> <div className="date-select"> <Select labelId="selectMonthDate" @@ -167,6 +152,21 @@ const ProfileTypeFormDateSelection = ({ ))} </Select> </div> + <div className="date-select"> + <Select + labelId="selectYearDate" + className="year" + defaultValue={selectedYear} + value={selectedYear} + onChange={e => handleSelectYear(e)} + > + {selectYears.map(year => ( + <MenuItem value={year} key={year} className="date-option"> + {year} + </MenuItem> + ))} + </Select> + </div> </div> )} </div> -- GitLab