mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 17:15:37 +01:00
Metrics components refactoring. New event data page.
This commit is contained in:
parent
4e6d24e932
commit
c865f43b11
47 changed files with 756 additions and 672 deletions
|
|
@ -5,13 +5,13 @@ import { Button, Icon, Icons, Text } from 'react-basics';
|
|||
import { useMessages, useReports } from 'hooks';
|
||||
import ReportsTable from './ReportsTable';
|
||||
|
||||
export function ReportsList() {
|
||||
export function ReportsPage() {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { reports, error, isLoading } = useReports();
|
||||
|
||||
return (
|
||||
<Page loading={isLoading} error={error}>
|
||||
<PageHeader title="Reports">
|
||||
<PageHeader title={formatMessage(labels.reports)}>
|
||||
<Link href="/reports/create">
|
||||
<Button variant="primary">
|
||||
<Icon>
|
||||
|
|
@ -26,4 +26,4 @@ export function ReportsList() {
|
|||
);
|
||||
}
|
||||
|
||||
export default ReportsList;
|
||||
export default ReportsPage;
|
||||
Loading…
Add table
Add a link
Reference in a new issue