Teams context settings.
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
'use client';
|
||||
import Link from 'next/link';
|
||||
import { Button, Flexbox, Icon, Icons, Text } from 'react-basics';
|
||||
import { useMessages, useNavigation } from 'components/hooks';
|
||||
import ReportsDataTable from 'app/(main)/reports/ReportsDataTable';
|
||||
|
||||
export function TeamReports({ websiteId }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { renderTeamUrl } = useNavigation();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Flexbox alignItems="center" justifyContent="end">
|
||||
<Link href={renderTeamUrl(`/reports/create`)}>
|
||||
<Button variant="primary">
|
||||
<Icon>
|
||||
<Icons.Plus />
|
||||
</Icon>
|
||||
<Text>{formatMessage(labels.createReport)}</Text>
|
||||
</Button>
|
||||
</Link>
|
||||
</Flexbox>
|
||||
<ReportsDataTable websiteId={websiteId} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default TeamReports;
|
||||
@@ -0,0 +1,3 @@
|
||||
import Page from 'app/(main)/reports/[reportId]/page';
|
||||
|
||||
export default Page;
|
||||
@@ -1,10 +1,3 @@
|
||||
import { Metadata } from 'next';
|
||||
import ReportTemplates from 'app/(main)/reports/create/ReportTemplates';
|
||||
import Page from 'app/(main)/reports/create/page';
|
||||
|
||||
export default function () {
|
||||
return <ReportTemplates />;
|
||||
}
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Create Report | umami',
|
||||
};
|
||||
export default Page;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
import Page from 'app/(main)/reports/event-data/page';
|
||||
|
||||
export default Page;
|
||||
3
src/app/(main)/teams/[teamId]/reports/funnel/page.tsx
Normal file
3
src/app/(main)/teams/[teamId]/reports/funnel/page.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
import Page from 'app/(main)/reports/funnel/page';
|
||||
|
||||
export default Page;
|
||||
3
src/app/(main)/teams/[teamId]/reports/insights/page.tsx
Normal file
3
src/app/(main)/teams/[teamId]/reports/insights/page.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
import Page from 'app/(main)/reports/insights/page';
|
||||
|
||||
export default Page;
|
||||
@@ -1,15 +1,3 @@
|
||||
import { Metadata } from 'next';
|
||||
import ReportsHeader from 'app/(main)/reports/ReportsHeader';
|
||||
import ReportsDataTable from 'app/(main)/reports/ReportsDataTable';
|
||||
import Page from 'app/(main)/reports/page';
|
||||
|
||||
export default function ({ params: { teamId } }) {
|
||||
return (
|
||||
<>
|
||||
<ReportsHeader />
|
||||
<ReportsDataTable teamId={teamId} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
export const metadata: Metadata = {
|
||||
title: 'Reports | umami',
|
||||
};
|
||||
export default Page;
|
||||
|
||||
3
src/app/(main)/teams/[teamId]/reports/retention/page.tsx
Normal file
3
src/app/(main)/teams/[teamId]/reports/retention/page.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
import Page from 'app/(main)/reports/retention/page';
|
||||
|
||||
export default Page;
|
||||
Reference in New Issue
Block a user