Fixes labels for v2 nav being blank (#4190)

pull/4070/head
Alex van Andel 2022-09-06 01:40:27 +01:00 committed by GitHub
parent d0c66a0a64
commit 046dadbae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -492,10 +492,10 @@ const NavigationItem: React.FC<{
aria-current={current ? "page" : undefined} aria-current={current ? "page" : undefined}
/> />
)} )}
{!isLocaleReady ? ( {isLocaleReady ? (
<SkeletonText className="h-3 w-32" />
) : (
<span className="hidden lg:inline">{t(item.name)}</span> <span className="hidden lg:inline">{t(item.name)}</span>
) : (
<SkeletonText className="h-3 w-32" />
)} )}
</a> </a>
</Link> </Link>
@ -563,7 +563,7 @@ const MobileNavigationItem: React.FC<{
aria-current={current ? "page" : undefined} aria-current={current ? "page" : undefined}
/> />
)} )}
{!isLocaleReady ? ( {isLocaleReady ? (
<span className="block truncate">{t(item.name)}</span> <span className="block truncate">{t(item.name)}</span>
) : ( ) : (
<SkeletonText className="" /> <SkeletonText className="" />