(null);
if (!current) {
return null;
}
@@ -29,38 +40,47 @@ const UserTableRow = observer((props: Props) => {
{user.connectedClients > 0 && (
{user.connectedClients}
)}
+ {user.banned && }
| {user.email} |
-
- {Object.values(Role).map((role, idx) => (
-
- ))}
+ {RoleNames[user.role]}
+ |
+
+
+
+
+
+ }
+ modal
+ ref={ref}
+ overlayStyle={{ background: 'rgba(0,0,0,0.5)' }}
+ on={'click'}
+ >
+ ref.current?.close()} />
+
+ {user.connectedClients > 0 && }
|
{user.firstName} |
{user.lastName} |
+
+ {user.authProviders.map((u, idx) => (
+
+ ))}
+ |
{formatDateTime(user.createdAt)} |
{formatDateTime(user.updatedAt)} |
-
+ |
{user.studentGroups.map((group, idx) => (
{group.name}
@@ -68,7 +88,11 @@ const UserTableRow = observer((props: Props) => {
))}
|
-
+
|
);
diff --git a/src/components/Admin/UserTable/index.tsx b/src/components/Admin/UserTable/index.tsx
index dcd5d8dc4..e3bf0288f 100644
--- a/src/components/Admin/UserTable/index.tsx
+++ b/src/components/Admin/UserTable/index.tsx
@@ -16,6 +16,7 @@ type SortColumn =
| 'accessLevel'
| 'firstName'
| 'lastName'
+ | 'linkedAccounts'
| 'createdAt'
| 'updatedAt'
| 'groups'
@@ -120,6 +121,7 @@ const UserTable = observer((props: Props) => {
onClick={() => setSortColumn('accessLevel')}
/>
+ |
|
+ Auth Provider |
|