Fix skeleton for MyPagesMobileMenu

This commit is contained in:
Anton Gunnarsson
2024-11-14 13:25:44 +01:00
parent 16882fc20a
commit 40df15d0e5
3 changed files with 21 additions and 7 deletions

View File

@@ -77,10 +77,12 @@ export default function MyPagesMenu({
export function MyPagesMenuSkeleton() {
return (
<MainMenuButton>
<Avatar />
<SkeletonShimmer width="10ch" />
<ChevronDownSmallIcon className={`${styles.chevron}`} color="red" />
</MainMenuButton>
<div className={styles.myPagesMenu}>
<MainMenuButton>
<Avatar />
<SkeletonShimmer width="10ch" />
<ChevronDownSmallIcon className={`${styles.chevron}`} color="red" />
</MainMenuButton>
</div>
)
}

View File

@@ -11,7 +11,9 @@ import { getIntl } from "@/i18n"
import Avatar from "../Avatar"
import MyPagesMenu, { MyPagesMenuSkeleton } from "../MyPagesMenu"
import MyPagesMobileMenu from "../MyPagesMobileMenu"
import MyPagesMobileMenu, {
MyPagesMobileMenuSkeleton,
} from "../MyPagesMobileMenu"
import styles from "./myPagesMenuWrapper.module.css"
@@ -67,7 +69,7 @@ export function MyPagesMenuWrapperSkeleton() {
return (
<div>
<MyPagesMenuSkeleton />
{/* <MyPagesMobileMenuSkeleton /> */}
<MyPagesMobileMenuSkeleton />
</div>
)
}

View File

@@ -76,3 +76,13 @@ export default function MyPagesMobileMenu({
</div>
)
}
export function MyPagesMobileMenuSkeleton() {
return (
<div className={styles.myPagesMobileMenu}>
<MainMenuButton className={styles.button}>
<Avatar />
</MainMenuButton>
</div>
)
}