Fixed 'use client' usage.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
'use client';
|
||||
import { CURRENT_VERSION, HOMEPAGE_URL } from 'lib/constants';
|
||||
import styles from './Footer.module.css';
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
'use client';
|
||||
import { Icon, Text } from 'react-basics';
|
||||
import Link from 'next/link';
|
||||
import LanguageButton from 'components/input/LanguageButton';
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
'use client';
|
||||
import WebsiteDetails from '../../(main)/websites/[websiteId]/WebsiteDetails';
|
||||
import WebsiteDetails from 'app/(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';
|
||||
import styles from './SharePage.module.css';
|
||||
|
||||
export default function Share({ shareId }) {
|
||||
export default function SharePage({ shareId }) {
|
||||
const { shareToken, isLoading } = useShareToken(shareId);
|
||||
|
||||
if (isLoading || !shareToken) {
|
||||
@@ -1,8 +1,8 @@
|
||||
import Share from './Share';
|
||||
import SharePage from './SharePage';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export default function ({ params: { shareId } }) {
|
||||
return <Share shareId={shareId[0]} />;
|
||||
return <SharePage shareId={shareId[0]} />;
|
||||
}
|
||||
|
||||
export const metadata: Metadata = {
|
||||
|
||||
Reference in New Issue
Block a user