mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 12:29:35 +01:00
renderteamURL on create report
This commit is contained in:
parent
4b40b4e9cf
commit
64d9a196cc
@ -1,18 +1,19 @@
|
|||||||
'use client';
|
'use client';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { Button, Flexbox, Icon, Icons, Text } from 'react-basics';
|
import { Button, Flexbox, Icon, Icons, Text } from 'react-basics';
|
||||||
import { useMessages } from 'components/hooks';
|
import { useMessages, useTeamUrl } from 'components/hooks';
|
||||||
import WebsiteHeader from '../WebsiteHeader';
|
import WebsiteHeader from '../WebsiteHeader';
|
||||||
import ReportsDataTable from 'app/(main)/reports/ReportsDataTable';
|
import ReportsDataTable from 'app/(main)/reports/ReportsDataTable';
|
||||||
|
|
||||||
export function WebsiteReportsPage({ websiteId }) {
|
export function WebsiteReportsPage({ websiteId }) {
|
||||||
const { formatMessage, labels } = useMessages();
|
const { formatMessage, labels } = useMessages();
|
||||||
|
const { renderTeamUrl } = useTeamUrl();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<WebsiteHeader websiteId={websiteId} />
|
<WebsiteHeader websiteId={websiteId} />
|
||||||
<Flexbox alignItems="center" justifyContent="end">
|
<Flexbox alignItems="center" justifyContent="end">
|
||||||
<Link href={`/reports/create`}>
|
<Link href={renderTeamUrl('/reports/create')}>
|
||||||
<Button variant="primary">
|
<Button variant="primary">
|
||||||
<Icon>
|
<Icon>
|
||||||
<Icons.Plus />
|
<Icons.Plus />
|
||||||
|
Loading…
Reference in New Issue
Block a user