mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 09:35:36 +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,5 +1,5 @@
|
|||
import Link from 'next/link';
|
||||
import { Button, Text, Icon, Icons, GridTable, GridColumn, Flexbox } from 'react-basics';
|
||||
import { Button, Text, Icon, Icons, GridTable, GridColumn } from 'react-basics';
|
||||
import useMessages from 'components/hooks/useMessages';
|
||||
import useUser from 'components/hooks/useUser';
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ export function WebsitesTable({ data = [], showTeam, showEditButton }) {
|
|||
} = row;
|
||||
|
||||
return (
|
||||
<Flexbox gap={10}>
|
||||
<>
|
||||
{showEditButton && (!showTeam || ownerId === user.id) && (
|
||||
<Link href={`/settings/websites/${id}`}>
|
||||
<Button>
|
||||
|
|
@ -48,7 +48,7 @@ export function WebsitesTable({ data = [], showTeam, showEditButton }) {
|
|||
<Text>{formatMessage(labels.view)}</Text>
|
||||
</Button>
|
||||
</Link>
|
||||
</Flexbox>
|
||||
</>
|
||||
);
|
||||
}}
|
||||
</GridColumn>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue