Skip to content

Commit

Permalink
fix: hydration issue, making top users card skeleton rendering weirdly
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Feb 5, 2024
1 parent d2089d3 commit fb31b1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/main/PageWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import CreatorDashboardSidebar, {
} from '../creators/CreatorDashboardSidebar'
import TopUsersCard from '../creators/TopUsersCard'
import ProgressModal from '../leaderboard/ProgressModal'
import { useIsMobileWidthOrDevice, useResponsiveSize } from '../responsive'
import { useIsMobileWidthOrDevice } from '../responsive'
import { fullUrl } from '../urls/helpers'
import Section from '../utils/Section'

Expand Down Expand Up @@ -125,7 +125,6 @@ export const PageContent: FC<Props> = ({
// const myAddress = useMyAddress()

const isMobile = useIsMobileWidthOrDevice()
const { isLargeDesktop } = useResponsiveSize()
// const isPanels = leftPanel || rightPanel

const sidebarStyles: ComponentProps<'div'> = {
Expand Down Expand Up @@ -155,8 +154,8 @@ export const PageContent: FC<Props> = ({
</section>
) : (
<div className={clsx('DfSectionOuterContainer')}>
{creatorDashboardSidebarType && isLargeDesktop && (
<div {...sidebarStyles}>
{creatorDashboardSidebarType && (
<div {...sidebarStyles} className='xl-only'>
<div>
<TopUsersCard />
</div>
Expand Down
6 changes: 6 additions & 0 deletions src/styles/subsocial.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2264,10 +2264,16 @@ hr {
}
}

.xl-only {
display: none;
}
@media screen and (min-width: 1200px) {
.xl-hidden {
display: none !important;
}
.xl-only {
display: block;
}
}

.\!FontTiny {
Expand Down

0 comments on commit fb31b1a

Please sign in to comment.