mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 12:05:41 +01:00
Update UsersTable.tsx
This commit is contained in:
parent
a49463dc68
commit
e93cc9429e
1 changed files with 3 additions and 3 deletions
|
|
@ -18,14 +18,14 @@ export function UsersTable({
|
|||
return (
|
||||
<GridTable data={data}>
|
||||
<GridColumn name="username" label={formatMessage(labels.username)} style={{ minWidth: 0 }} />
|
||||
<GridColumn name="role" label={formatMessage(labels.role)} width={'120px'}>
|
||||
<GridColumn name="role" label={formatMessage(labels.role)} width="120px">
|
||||
{row =>
|
||||
formatMessage(
|
||||
labels[Object.keys(ROLES).find(key => ROLES[key] === row.role)] || labels.unknown,
|
||||
)
|
||||
}
|
||||
</GridColumn>
|
||||
<GridColumn name="created" label={formatMessage(labels.created)} width={'150px'}>
|
||||
<GridColumn name="created" label={formatMessage(labels.created)} width="150px">
|
||||
{row =>
|
||||
formatDistance(new Date(row.createdAt), new Date(), {
|
||||
addSuffix: true,
|
||||
|
|
@ -33,7 +33,7 @@ export function UsersTable({
|
|||
})
|
||||
}
|
||||
</GridColumn>
|
||||
<GridColumn name="websites" label={formatMessage(labels.websites)} width={'120px'}>
|
||||
<GridColumn name="websites" label={formatMessage(labels.websites)} width="120px">
|
||||
{row => row._count.website}
|
||||
</GridColumn>
|
||||
{showActions && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue