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