mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
fix getReports for website, user, team
This commit is contained in:
parent
b41ab4ec2a
commit
7a9b6a521d
3 changed files with 29 additions and 8 deletions
|
|
@ -2,8 +2,11 @@
|
|||
import { Metadata } from 'next';
|
||||
import ReportsHeader from './ReportsHeader';
|
||||
import ReportsDataTable from './ReportsDataTable';
|
||||
import { useTeamUrl } from 'components/hooks';
|
||||
|
||||
export default function ReportsPage() {
|
||||
const { teamId } = useTeamUrl();
|
||||
|
||||
export default function ReportsPage({ teamId }: { teamId: string }) {
|
||||
return (
|
||||
<>
|
||||
<ReportsHeader />
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import ReportsPage from './ReportsPage';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export default function ({ params: { teamId } }: { params: { teamId: string } }) {
|
||||
return <ReportsPage teamId={teamId} />;
|
||||
export default function () {
|
||||
return <ReportsPage />;
|
||||
}
|
||||
|
||||
export const metadata: Metadata = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue