Fixes labels for v2 nav being blank (#4190)
parent
d0c66a0a64
commit
046dadbae2
|
@ -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="" />
|
||||||
|
|
Loading…
Reference in New Issue