mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 15:17:23 +01:00
Replaced SettingsTable with DataTable.
This commit is contained in:
parent
0d9b6e8355
commit
9bb89c7e8b
24 changed files with 134 additions and 381 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Button, Text, Icon, Icons, GridTable, GridColumn, Flexbox } from 'react-basics';
|
||||
import { Button, Text, Icon, Icons, GridTable, GridColumn } from 'react-basics';
|
||||
import { formatDistance } from 'date-fns';
|
||||
import Link from 'next/link';
|
||||
import { ROLES } from 'lib/constants';
|
||||
|
|
@ -36,7 +36,7 @@ export function UsersTable({ data = [] }) {
|
|||
{row => {
|
||||
const { id, username } = row;
|
||||
return (
|
||||
<Flexbox gap={10}>
|
||||
<>
|
||||
<Link href={`/settings/users/${id}`}>
|
||||
<Button>
|
||||
<Icon>
|
||||
|
|
@ -46,7 +46,7 @@ export function UsersTable({ data = [] }) {
|
|||
</Button>
|
||||
</Link>
|
||||
<UserDeleteButton userId={id} username={username} />
|
||||
</Flexbox>
|
||||
</>
|
||||
);
|
||||
}}
|
||||
</GridColumn>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue