Skip to content

Commit

Permalink
Fix hydration issues
Browse files Browse the repository at this point in the history
  • Loading branch information
julianweng committed Sep 29, 2024
1 parent f540c02 commit 28d694f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/pages/club/[club]/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import ClubMetadata from 'components/ClubMetadata'
import { DesktopActions, MobileActions } from 'components/ClubPage/Actions'
import AdvisorList from 'components/ClubPage/AdvisorList'
import ClubApprovalDialog from 'components/ClubPage/ClubApprovalDialog'
import Description from 'components/ClubPage/Description'
import FilesList from 'components/ClubPage/FilesList'
import Header from 'components/ClubPage/Header'
Expand All @@ -24,6 +23,7 @@ import {
WideContainer,
} from 'components/common'
import { NextPageContext } from 'next'
import dynamic from 'next/dynamic'
import Link from 'next/link'
import { ReactElement, useEffect, useRef, useState } from 'react'
import Linkify from 'react-linkify'
Expand Down Expand Up @@ -170,6 +170,11 @@ const ClubPage = ({
)
}

const ClubApprovalDialog = dynamic(
() => import('components/ClubPage/ClubApprovalDialog'),
{ ssr: false },
)

const {
active: isActive,
image_url: image,
Expand Down

0 comments on commit 28d694f

Please sign in to comment.