mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Different method + fixed lint for tracker + added frame mode for shared URLs
This commit is contained in:
parent
2ea91aaabf
commit
d19bcbabe0
3 changed files with 42 additions and 41 deletions
|
|
@ -6,7 +6,7 @@ import useFetch from 'hooks/useFetch';
|
|||
|
||||
export default function SharePage() {
|
||||
const router = useRouter();
|
||||
const { id } = router.query;
|
||||
const { id, frame } = router.query;
|
||||
const shareId = id?.[0];
|
||||
const { data } = useFetch(shareId ? `/api/share/${shareId}` : null);
|
||||
|
||||
|
|
@ -15,7 +15,7 @@ export default function SharePage() {
|
|||
}
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<Layout header={!frame} footer={!frame}>
|
||||
<WebsiteDetails websiteId={data.website_id} />
|
||||
</Layout>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue