mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 04:25:39 +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 (
|
return (
|
||||||
<GridTable data={data}>
|
<GridTable data={data}>
|
||||||
<GridColumn name="username" label={formatMessage(labels.username)} style={{ minWidth: 0 }} />
|
<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 =>
|
{row =>
|
||||||
formatMessage(
|
formatMessage(
|
||||||
labels[Object.keys(ROLES).find(key => ROLES[key] === row.role)] || labels.unknown,
|
labels[Object.keys(ROLES).find(key => ROLES[key] === row.role)] || labels.unknown,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</GridColumn>
|
</GridColumn>
|
||||||
<GridColumn name="created" label={formatMessage(labels.created)} width={'150px'}>
|
<GridColumn name="created" label={formatMessage(labels.created)} width="150px">
|
||||||
{row =>
|
{row =>
|
||||||
formatDistance(new Date(row.createdAt), new Date(), {
|
formatDistance(new Date(row.createdAt), new Date(), {
|
||||||
addSuffix: true,
|
addSuffix: true,
|
||||||
|
|
@ -33,7 +33,7 @@ export function UsersTable({
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</GridColumn>
|
</GridColumn>
|
||||||
<GridColumn name="websites" label={formatMessage(labels.websites)} width={'120px'}>
|
<GridColumn name="websites" label={formatMessage(labels.websites)} width="120px">
|
||||||
{row => row._count.website}
|
{row => row._count.website}
|
||||||
</GridColumn>
|
</GridColumn>
|
||||||
{showActions && (
|
{showActions && (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue