feat: add login type to users page (#8912)

This commit is contained in:
Steven Masley
2023-08-07 09:34:39 -05:00
committed by GitHub
parent 90c1647fcf
commit 71ea5ace07
2 changed files with 7 additions and 2 deletions
@@ -15,6 +15,7 @@ export const Language = {
rolesLabel: "Roles",
statusLabel: "Status",
lastSeenLabel: "Last Seen",
loginTypeLabel: "Login Type",
}
export interface UsersTableProps {
@@ -69,8 +70,9 @@ export const UsersTable: FC<React.PropsWithChildren<UsersTableProps>> = ({
<UserRoleHelpTooltip />
</Stack>
</TableCell>
<TableCell width="15%">{Language.statusLabel}</TableCell>
<TableCell width="15%">{Language.lastSeenLabel}</TableCell>
<TableCell width="10%">{Language.loginTypeLabel}</TableCell>
<TableCell width="10%">{Language.statusLabel}</TableCell>
<TableCell width="10%">{Language.lastSeenLabel}</TableCell>
{/* 1% is a trick to make the table cell width fit the content */}
{canEditUsers && <TableCell width="1%" />}
@@ -155,6 +155,9 @@ export const UsersTableBody: FC<
))}
</Stack>
</TableCell>
<TableCell>
<pre>{user.login_type}</pre>
</TableCell>
<TableCell
className={combineClasses([
styles.status,