From 243e2cfba7d1560b473fe2bcf5a8b35de7020d1b Mon Sep 17 00:00:00 2001 From: badrAG Date: Mon, 8 Apr 2024 15:35:06 +0000 Subject: [PATCH] DEV :: hide some details --- .../(main)/websites/[websiteId]/WebsiteDetails.tsx | 5 ++--- src/app/share/[...shareId]/Header.tsx | 13 ------------- src/app/share/[...shareId]/SharePage.tsx | 2 -- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/app/(main)/websites/[websiteId]/WebsiteDetails.tsx b/src/app/(main)/websites/[websiteId]/WebsiteDetails.tsx index 1a131da13..a492c203f 100644 --- a/src/app/(main)/websites/[websiteId]/WebsiteDetails.tsx +++ b/src/app/(main)/websites/[websiteId]/WebsiteDetails.tsx @@ -12,21 +12,20 @@ import WebsiteTableView from './WebsiteTableView'; export default function WebsiteDetails({ websiteId }: { websiteId: string }) { const { data: website, isLoading, error } = useWebsite(websiteId); - const pathname = usePathname(); const { query } = useNavigation(); if (isLoading || error) { return ; } - const showLinks = !pathname.includes('/share/'); + const showLinks = false const { view, ...params } = query; return ( <> - + {!website && } {website && ( diff --git a/src/app/share/[...shareId]/Header.tsx b/src/app/share/[...shareId]/Header.tsx index ddfb52a55..6625f6002 100644 --- a/src/app/share/[...shareId]/Header.tsx +++ b/src/app/share/[...shareId]/Header.tsx @@ -1,24 +1,11 @@ -import { Icon, Text } from 'react-basics'; -import Link from 'next/link'; import LanguageButton from 'components/input/LanguageButton'; -import ThemeButton from 'components/input/ThemeButton'; import SettingsButton from 'components/input/SettingsButton'; -import Icons from 'components/icons'; import styles from './Header.module.css'; export function Header() { return (
-
- - - - - umami - -
-
diff --git a/src/app/share/[...shareId]/SharePage.tsx b/src/app/share/[...shareId]/SharePage.tsx index b49d36ec6..d0e32a293 100644 --- a/src/app/share/[...shareId]/SharePage.tsx +++ b/src/app/share/[...shareId]/SharePage.tsx @@ -3,7 +3,6 @@ import WebsiteDetails from 'app/(main)/websites/[websiteId]/WebsiteDetails'; import { useShareToken } from 'components/hooks'; import Page from 'components/layout/Page'; import Header from './Header'; -import Footer from './Footer'; import styles from './SharePage.module.css'; export default function SharePage({ shareId }) { @@ -18,7 +17,6 @@ export default function SharePage({ shareId }) {
-