Skip to content

Commit

Permalink
Feature/GitHub jobs (saadpasta#519)
Browse files Browse the repository at this point in the history
* don't consider pulling if it's hireable from the GitHub API

* can now be placed in portfolio.js if you are hireable or not

* info about is hireable, is imported from portfolio

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* the comment is improved indicating how and where it is seen

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
camipozas and pre-commit-ci[bot] committed Sep 1, 2022
1 parent 3bb748a commit 1b73765
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ if (USE_GITHUB_DATA === "true") {
user(login:"${GITHUB_USERNAME}") {
name
bio
isHireable
avatarUrl
location
pinnedItems(first: 6, types: [REPOSITORY]) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/githubProfileCard/GithubProfileCard.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from "react";
import "./GithubProfileCard.scss";
import SocialMedia from "../../components/socialMedia/SocialMedia";
import {contactInfo} from "../../portfolio";
import {contactInfo, isHireable} from "../../portfolio";
import emoji from "react-easy-emoji";
import {Fade} from "react-reveal";

export default function GithubProfileCard({prof}) {
if (prof.isHireable) {
if (isHireable) {
prof.hireable = "Yes";
} else {
prof.hireable = "No";
Expand Down
5 changes: 4 additions & 1 deletion src/portfolio.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ const twitterDetails = {
display: true // Set true to display this section, defaults to false
};

const isHireable = false; // Set false if you are not looking for a job. Also isHireable will be display as Open for opportunities: Yes/No in the GitHub footer

export {
illustration,
greeting,
Expand All @@ -390,5 +392,6 @@ export {
talkSection,
podcastSection,
contactInfo,
twitterDetails
twitterDetails,
isHireable
};

0 comments on commit 1b73765

Please sign in to comment.