From defd227a4254620d9869237c5c8e468afebae943 Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Sun, 18 Sep 2022 21:32:20 +0530 Subject: [PATCH 1/4] update package-lock.json --- package-lock.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 50f551280..08413e27f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,8 +1,6 @@ { "name": "masterPortfolio", "version": "0.1.0", - "lockfileVersion": 1, - "requires": true, "dependencies": { "@apollo/react-common": { "version": "3.1.3", @@ -2333,9 +2331,9 @@ "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==" }, "async": { - "version": "2.6.4", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", - "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", + "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", "requires": { "lodash": "^4.17.14" } @@ -16581,5 +16579,7 @@ "zen-observable": "^0.8.0" } } - } + }, + "lockfileVersion": 1, + "requires": true } From b831c289341c1e7de1ff2056d6fae731fecdebe4 Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Thu, 22 Sep 2022 16:57:18 +0530 Subject: [PATCH 2/4] resume button conditional rendering --- src/pages/contact/ContactComponent.js | 18 ++++++++++-------- src/portfolio.js | 1 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/pages/contact/ContactComponent.js b/src/pages/contact/ContactComponent.js index f67e187f0..824b8fcc1 100644 --- a/src/pages/contact/ContactComponent.js +++ b/src/pages/contact/ContactComponent.js @@ -44,14 +44,16 @@ class Contact extends Component { {ContactData["description"]}

-
-
+ {contactPageData.isResumeDownloadable ? ( +
+
+ ) : null} diff --git a/src/portfolio.js b/src/portfolio.js index a7cbd0890..516237bb6 100644 --- a/src/portfolio.js +++ b/src/portfolio.js @@ -720,6 +720,7 @@ const contactPageData = { title: "Phone Number", subtitle: "+91 8320758513", }, + isResumeDownloadable: false, // change it to true to show resume download button }; export { From 6accb505e5aff69da8890a83c2847917bf241ea6 Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Thu, 22 Sep 2022 17:03:35 +0530 Subject: [PATCH 3/4] conditional rendering of star me On github button --- src/containers/greeting/Greeting.js | 20 +++++++++++--------- src/portfolio.js | 3 ++- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/containers/greeting/Greeting.js b/src/containers/greeting/Greeting.js index 395c8ffb5..e04a2b3d7 100644 --- a/src/containers/greeting/Greeting.js +++ b/src/containers/greeting/Greeting.js @@ -27,15 +27,17 @@ export default function Greeting(props) { {greeting.subTitle}

-
-
+ {greeting.showStarMebutton ? ( +
+
+ ) : null} {/*