From 65dc3e92d02cf770406b039d962f305abd57c655 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Tue, 27 Aug 2024 09:38:47 +0100 Subject: [PATCH] ENCOA-110: Reorder excel upload columns --- src/pages/(admin)/BatchCreateUser.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/(admin)/BatchCreateUser.tsx b/src/pages/(admin)/BatchCreateUser.tsx index a1d9b856..4453bead 100644 --- a/src/pages/(admin)/BatchCreateUser.tsx +++ b/src/pages/(admin)/BatchCreateUser.tsx @@ -104,7 +104,7 @@ export default function BatchCreateUser({user}: {user: User}) { const information = uniqBy( rows .map((row) => { - const [firstName, lastName, country, passport_id, email, phone, group, studentID, corporate] = row as string[]; + const [firstName, lastName, studentID, passport_id, email, phone, corporate, group, country] = row as string[]; const countryItem = countryCodes.findOne("countryCode" as any, country.toUpperCase()) || countryCodes.all().find((x) => x.countryNameEn.toLowerCase() === country.toLowerCase()); @@ -179,13 +179,13 @@ export default function BatchCreateUser({user}: {user: User}) { First Name Last Name - Country + Student ID Passport/National ID E-mail Phone Number - Group Name - Student ID {user?.type !== "corporate" && Corporate (e-mail)} + Group Name + Country