mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 20:00:25 +00:00
Rename GitHub Project component
This commit is contained in:
@@ -9,7 +9,7 @@ import Skill from './skill';
|
|||||||
import Experience from './experience';
|
import Experience from './experience';
|
||||||
import Certification from './certification';
|
import Certification from './certification';
|
||||||
import Education from './education';
|
import Education from './education';
|
||||||
import Project from './project';
|
import GitHubProject from './github-project';
|
||||||
import Blog from './blog';
|
import Blog from './blog';
|
||||||
import Footer from './footer';
|
import Footer from './footer';
|
||||||
import {
|
import {
|
||||||
@@ -197,7 +197,7 @@ const GitProfile = ({ config }) => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="lg:col-span-2 col-span-1">
|
<div className="lg:col-span-2 col-span-1">
|
||||||
<div className="grid grid-cols-1 gap-6">
|
<div className="grid grid-cols-1 gap-6">
|
||||||
<Project
|
<GitHubProject
|
||||||
repo={repo}
|
repo={repo}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
github={sanitizedConfig.github}
|
github={sanitizedConfig.github}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { AiOutlineFork, AiOutlineStar } from 'react-icons/ai';
|
|||||||
import { MdInsertLink } from 'react-icons/md';
|
import { MdInsertLink } from 'react-icons/md';
|
||||||
import { ga, languageColor, skeleton } from '../../helpers/utils';
|
import { ga, languageColor, skeleton } from '../../helpers/utils';
|
||||||
|
|
||||||
const Project = ({ repo, loading, github, googleAnalytics }) => {
|
const GitHubProject = ({ repo, loading, github, googleAnalytics }) => {
|
||||||
if (!loading && Array.isArray(repo) && repo.length === 0) {
|
if (!loading && Array.isArray(repo) && repo.length === 0) {
|
||||||
return <></>;
|
return <></>;
|
||||||
}
|
}
|
||||||
@@ -166,11 +166,11 @@ const Project = ({ repo, loading, github, googleAnalytics }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
Project.propTypes = {
|
GitHubProject.propTypes = {
|
||||||
repo: PropTypes.array,
|
repo: PropTypes.array,
|
||||||
loading: PropTypes.bool.isRequired,
|
loading: PropTypes.bool.isRequired,
|
||||||
github: PropTypes.object.isRequired,
|
github: PropTypes.object.isRequired,
|
||||||
googleAnalytics: PropTypes.object.isRequired,
|
googleAnalytics: PropTypes.object.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Project;
|
export default GitHubProject;
|
||||||
Reference in New Issue
Block a user