mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
refactored boris components
This commit is contained in:
parent
df217b41f7
commit
e071665561
6 changed files with 6 additions and 6 deletions
|
@ -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 (
|
||||
<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue