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
|
|
@ -4,7 +4,6 @@ import { useMessages } from 'components/hooks';
|
|||
import useUser from 'components/hooks/useUser';
|
||||
import {
|
||||
Button,
|
||||
Flexbox,
|
||||
GridColumn,
|
||||
GridTable,
|
||||
Icon,
|
||||
|
|
@ -43,7 +42,7 @@ export function ReportsTable({ data = [], onDelete, showDomain }) {
|
|||
{row => {
|
||||
const { id, name, userId, website } = row;
|
||||
return (
|
||||
<Flexbox gap={10}>
|
||||
<>
|
||||
<LinkButton href={`/reports/${id}`}>{formatMessage(labels.view)}</LinkButton>
|
||||
{(user.id === userId || user.id === website?.userId) && (
|
||||
<ModalTrigger>
|
||||
|
|
@ -64,7 +63,7 @@ export function ReportsTable({ data = [], onDelete, showDomain }) {
|
|||
</Modal>
|
||||
</ModalTrigger>
|
||||
)}
|
||||
</Flexbox>
|
||||
</>
|
||||
);
|
||||
}}
|
||||
</GridColumn>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue