mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-11-25 15:29:54 +00:00
Hide project section if no public github repo available for user
This commit is contained in:
1 parent
7349310873
commit
e4f06638f9
2 files changed
+10
-1
No files matched your search
@@ -4,6 +4,10 @@ import PropTypes from 'prop-types';
|
||||
import { ga, languageColor, skeleton } from '../../helpers/utils';
|
||||
|
||||
const Project = ({ repo, loading, github, googleAnalytics }) => {
|
||||
if (!loading && Array.isArray(repo) && repo.length === 0) {
|
||||
return <></>;
|
||||
}
|
||||
|
||||
const renderSkeleton = () => {
|
||||
let array = [];
|
||||
for (let index = 0; index < github.limit; index++) {
|
||||
|
||||
Reference in new issue
Block a user