From be836f9d5e4ff07e5c56175d932aa753515a0c1b Mon Sep 17 00:00:00 2001
From: gcarron <gcarron@grandlyon.com>
Date: Wed, 18 May 2022 14:23:16 +0200
Subject: [PATCH] feat(profileType): invert month and year fields

---
 .../ProfileTypeFormDateSelection.tsx          | 28 +++++++++----------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/components/ProfileType/ProfileTypeFormDateSelection.tsx b/src/components/ProfileType/ProfileTypeFormDateSelection.tsx
index 693413cf5..05b3b77af 100644
--- a/src/components/ProfileType/ProfileTypeFormDateSelection.tsx
+++ b/src/components/ProfileType/ProfileTypeFormDateSelection.tsx
@@ -189,6 +189,20 @@ const ProfileTypeFormDateSelection: React.FC<ProfileTypeFormDateSelectionProps>
         </div>
         {answer !== null ? (
           <div className="select-container">
+            <div className="date-select">
+              <Select
+                labelId="selectYearDate"
+                className="year"
+                defaultValue={selectedYear}
+                onChange={e => handleSelectYear(e)}
+              >
+                {selectYears.map((year, key) => (
+                  <MenuItem value={year} key={key} className="date-option">
+                    {year}
+                  </MenuItem>
+                ))}
+              </Select>
+            </div>
             <div className="date-select">
               <Select
                 native={false}
@@ -221,20 +235,6 @@ const ProfileTypeFormDateSelection: React.FC<ProfileTypeFormDateSelectionProps>
                     ))}
               </Select>
             </div>
-            <div className="date-select">
-              <Select
-                labelId="selectYearDate"
-                className="year"
-                defaultValue={selectedYear}
-                onChange={e => handleSelectYear(e)}
-              >
-                {selectYears.map((year, key) => (
-                  <MenuItem value={year} key={key} className="date-option">
-                    {year}
-                  </MenuItem>
-                ))}
-              </Select>
-            </div>
           </div>
         ) : null}
       </div>
-- 
GitLab