martmull
2024-05-29 23:35:32 +02:00
committed by GitHub
parent bcb582ffa0
commit 9a23f9b322
5 changed files with 63 additions and 62 deletions

View File

@ -20,9 +20,9 @@ export const NavigationDrawerSectionTitle = ({
label,
}: NavigationDrawerSectionTitleProps) => {
const loading = useIsPrefetchLoading();
return loading ? (
<NavigationDrawerSectionTitleSkeletonLoader />
) : (
<StyledTitle>{label}</StyledTitle>
);
if (loading) {
return <NavigationDrawerSectionTitleSkeletonLoader />;
}
return <StyledTitle>{label}</StyledTitle>;
};