mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
Fixed 'use client' usage.
This commit is contained in:
parent
be5592446a
commit
f7151a880e
208 changed files with 323 additions and 385 deletions
|
|
@ -1,25 +0,0 @@
|
|||
'use client';
|
||||
import WebsiteDetails from '../../(main)/websites/[websiteId]/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