mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 13:47:15 +01:00
Fixed teams urls.
This commit is contained in:
parent
8a722ff013
commit
4b67d10f04
8 changed files with 17 additions and 25 deletions
|
|
@ -60,7 +60,7 @@ export function ReportHeader({ icon }) {
|
|||
<div className={styles.type}>
|
||||
<Breadcrumb
|
||||
data={[
|
||||
{ label: formatMessage(labels.reports), url: '/reports' },
|
||||
{ label: formatMessage(labels.reports), url: renderTeamUrl('/reports') },
|
||||
{
|
||||
label: formatMessage(
|
||||
labels[Object.keys(REPORT_TYPES).find(key => REPORT_TYPES[key] === report?.type)],
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
import Page from 'app/(main)/reports/goals/page';
|
||||
|
||||
export default Page;
|
||||
|
|
@ -1,8 +1,11 @@
|
|||
'use client';
|
||||
import WebsitesHeader from 'app/(main)/settings/websites/WebsitesHeader';
|
||||
import WebsitesDataTable from 'app/(main)/settings/websites/WebsitesDataTable';
|
||||
import { useTeamUrl } from 'components/hooks';
|
||||
|
||||
export default function WebsitesPage() {
|
||||
const { teamId } = useTeamUrl();
|
||||
|
||||
export default function WebsitesPage({ teamId }: { teamId: string }) {
|
||||
return (
|
||||
<>
|
||||
<WebsitesHeader teamId={teamId} allowCreate={false} />
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import WebsitesPage from './WebsitesPage';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export default function ({ params: { teamId, userId } }) {
|
||||
return <WebsitesPage teamId={teamId} userId={userId} />;
|
||||
export default function () {
|
||||
return <WebsitesPage />;
|
||||
}
|
||||
|
||||
export const metadata: Metadata = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue