update ,
This commit is contained in:
@@ -30,14 +30,37 @@ function LessonTypeCount(): React.JSX.Element {
|
||||
}, []);
|
||||
|
||||
if (isLoading) {
|
||||
return <LoadingSummary />;
|
||||
return (
|
||||
<LoadingSummary
|
||||
diff={15}
|
||||
icon={ListChecksIcon}
|
||||
title={t('課程類型')}
|
||||
trend="up"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
if (error) {
|
||||
return <Summary amount={0} diff={0} icon={ListChecksIcon} title={t('Error')} trend="down" />;
|
||||
return (
|
||||
<Summary
|
||||
amount={0}
|
||||
diff={0}
|
||||
icon={ListChecksIcon}
|
||||
title={t('Error')}
|
||||
trend="down"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
return <Summary amount={amount} diff={15} icon={ListChecksIcon} title={t('課程類型')} trend="up" />;
|
||||
return (
|
||||
<Summary
|
||||
amount={amount}
|
||||
diff={15}
|
||||
icon={ListChecksIcon}
|
||||
title={t('課程類型')}
|
||||
trend="up"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export default React.memo(LessonTypeCount);
|
||||
|
Reference in New Issue
Block a user