Skip to content

Commit

Permalink
Fixed share page.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Aug 9, 2024
1 parent 840c1c0 commit 5feae93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/share/[...shareId]/SharePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Page from 'components/layout/Page';
import Header from './Header';
import Footer from './Footer';
import styles from './SharePage.module.css';
import { WebsiteProvider } from 'app/(main)/websites/[websiteId]/WebsiteProvider';

export default function SharePage({ shareId }) {
const { shareToken, isLoading } = useShareToken(shareId);
Expand All @@ -17,7 +18,9 @@ export default function SharePage({ shareId }) {
<div className={styles.container}>
<Page>
<Header />
<WebsiteDetailsPage websiteId={shareToken.websiteId} />
<WebsiteProvider websiteId={shareToken.websiteId}>
<WebsiteDetailsPage websiteId={shareToken.websiteId} />
</WebsiteProvider>
<Footer />
</Page>
</div>
Expand Down

0 comments on commit 5feae93

Please sign in to comment.