mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 12:27:17 +00:00
Hide project section if no public github repo available for user
This commit is contained in:
@@ -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