1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

refactored boris components

This commit is contained in:
Fedor Katurov 2021-11-21 17:34:32 +07:00
parent df217b41f7
commit e071665561
6 changed files with 6 additions and 6 deletions

View file

@ -9,8 +9,6 @@ interface IProps {
}
const BorisStatsGit: FC<IProps> = ({ stats }) => {
if (!stats.issues.length) return null;
const open = useMemo(
() => stats.issues.filter(el => !el.pull_request && el.state === 'open').slice(0, 5),
[stats.issues]
@ -21,6 +19,8 @@ const BorisStatsGit: FC<IProps> = ({ stats }) => {
[stats.issues]
);
if (!stats.issues.length) return null;
if (stats.is_loading) {
return (
<>