mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
Changed route ids to be more explicit.
This commit is contained in:
parent
1a70350936
commit
18e36aa7b3
105 changed files with 86 additions and 76 deletions
|
|
@ -1,25 +0,0 @@
|
|||
'use client';
|
||||
import WebsiteDetails from 'app/(main)/websites/[id]/WebsiteDetails';
|
||||
import { useShareToken } from 'components/hooks';
|
||||
import styles from './Share.module.css';
|
||||
import Page from 'components/layout/Page';
|
||||
import Header from './Header';
|
||||
import Footer from './Footer';
|
||||
|
||||
export default function Share({ shareId }) {
|
||||
const { shareToken, isLoading } = useShareToken(shareId);
|
||||
|
||||
if (isLoading || !shareToken) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<Page>
|
||||
<Header />
|
||||
<WebsiteDetails websiteId={shareToken.websiteId} />
|
||||
<Footer />
|
||||
</Page>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue