-
-
-
+
+
);
diff --git a/frontend/src/component/user/common/StandaloneLayout/StandaloneLayout.styles.ts b/frontend/src/component/user/common/StandaloneLayout/StandaloneLayout.styles.ts
index e6a77dda08..c869faaca9 100644
--- a/frontend/src/component/user/common/StandaloneLayout/StandaloneLayout.styles.ts
+++ b/frontend/src/component/user/common/StandaloneLayout/StandaloneLayout.styles.ts
@@ -2,8 +2,8 @@ import { makeStyles } from '@material-ui/core/styles';
export const useStyles = makeStyles(theme => ({
container: {
- padding: '4rem',
- background: '#3a5663',
+ padding: '5.5rem',
+ background: '#EFF2F2',
display: 'flex',
[theme.breakpoints.down('sm')]: {
flexDirection: 'column',
diff --git a/frontend/src/page/admin/users/AddUser/AddUserForm/AddUserForm.jsx b/frontend/src/page/admin/users/AddUser/AddUserForm/AddUserForm.jsx
index 1060a12425..4fab6d26d9 100644
--- a/frontend/src/page/admin/users/AddUser/AddUserForm/AddUserForm.jsx
+++ b/frontend/src/page/admin/users/AddUser/AddUserForm/AddUserForm.jsx
@@ -55,6 +55,15 @@ function AddUserForm({
});
};
+ const sortRoles = (a, b) => {
+ if (b.name[0] < a.name[0]) {
+ return 1;
+ } else if (a.name[0] < b.name[0]) {
+ return -1;
+ }
+ return 0;
+ };
+
const apiError =
userApiErrors[ADD_USER_ERROR] || userApiErrors[UPDATE_USER_ERROR];
return (
@@ -134,7 +143,7 @@ function AddUserForm({
onChange={updateNumberField}
data-loading
>
- {roles.map(role => (
+ {roles.sort(sortRoles).map(role => (