From 3e0af6dad2710fc51755fd9d3ff4d8ec43299f06 Mon Sep 17 00:00:00 2001 From: vigneshkanna Date: Tue, 11 Oct 2022 18:22:22 +0530 Subject: [PATCH 1/4] experience company link added --- gitprofile.config.js | 1 + src/components/experience/index.jsx | 12 +++++++++--- types/index.d.ts | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gitprofile.config.js b/gitprofile.config.js index aa7b96e..5595292 100644 --- a/gitprofile.config.js +++ b/gitprofile.config.js @@ -48,6 +48,7 @@ const config = { position: 'Backend Engineer II', from: 'September 2021', to: 'Present', + companyLink: 'https://monstar-lab.com/bd/', }, { company: 'My Offer 360 Degree', diff --git a/src/components/experience/index.jsx b/src/components/experience/index.jsx index 395e60e..cefd8a6 100644 --- a/src/components/experience/index.jsx +++ b/src/components/experience/index.jsx @@ -2,7 +2,7 @@ import { skeleton } from '../../helpers/utils'; import { Fragment } from 'react'; import PropTypes from 'prop-types'; -const ListItem = ({ time, position, company }) => ( +const ListItem = ({ time, position, company, link }) => (
  • ( >
    {time}

    {position}

    -
    {company}
    +
    {company}
  • ); @@ -37,7 +42,6 @@ const Experience = ({ experiences, loading }) => { return array; }; - return ( <> {experiences?.length !== 0 && ( @@ -66,6 +70,7 @@ const Experience = ({ experiences, loading }) => { time={`${experience.from} - ${experience.to}`} position={experience.position} company={experience.company} + link={experience.companyLink ? experience.companyLink: null} /> ))} @@ -83,6 +88,7 @@ ListItem.propTypes = { time: PropTypes.node, position: PropTypes.node, company: PropTypes.node, + link: PropTypes.string, }; Experience.propTypes = { diff --git a/types/index.d.ts b/types/index.d.ts index d03d6c8..de04515 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -207,6 +207,7 @@ export interface Experience { position?: string; from?: string; to?: string; + companyLink?: string; } export interface Education { From 6b638f03eaec670c24cd6ef4306defb280abbc23 Mon Sep 17 00:00:00 2001 From: vigneshkanna Date: Tue, 11 Oct 2022 18:26:44 +0530 Subject: [PATCH 2/4] readme updated --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b444712..3567d3e 100644 --- a/README.md +++ b/README.md @@ -228,6 +228,7 @@ const config = { position: 'Software Engineer', from: 'July 2019', to: 'Present', + companyLink: 'https://comapny.com' }, { company: 'Company name 2', @@ -463,6 +464,7 @@ module.exports = { position: 'Software Engineer', from: 'July 2019', to: 'Present', + companyLink: 'https://company1.com' }, { company: 'Company name 2', From 39a97afb225ba7ed821a9a76ea8e6588ef8fb068 Mon Sep 17 00:00:00 2001 From: vigneshkanna Date: Fri, 14 Oct 2022 18:06:57 +0530 Subject: [PATCH 3/4] prettier issue solved --- src/components/experience/index.jsx | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/components/experience/index.jsx b/src/components/experience/index.jsx index cefd8a6..afb6ef5 100644 --- a/src/components/experience/index.jsx +++ b/src/components/experience/index.jsx @@ -2,7 +2,7 @@ import { skeleton } from '../../helpers/utils'; import { Fragment } from 'react'; import PropTypes from 'prop-types'; -const ListItem = ({ time, position, company, link }) => ( +const ListItem = ({ time, position, company, link }) => (
  • ( >
    {time}

    {position}

    -
    {company}
    +
    + + {company} + +
  • ); @@ -70,7 +74,9 @@ const Experience = ({ experiences, loading }) => { time={`${experience.from} - ${experience.to}`} position={experience.position} company={experience.company} - link={experience.companyLink ? experience.companyLink: null} + link={ + experience.companyLink ? experience.companyLink : null + } /> ))} From 4430d982f49006a58fbc526c6eebc597ce56fea0 Mon Sep 17 00:00:00 2001 From: vigneshkanna Date: Fri, 14 Oct 2022 19:21:24 +0530 Subject: [PATCH 4/4] readme prettier --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3567d3e..413f534 100644 --- a/README.md +++ b/README.md @@ -228,7 +228,7 @@ const config = { position: 'Software Engineer', from: 'July 2019', to: 'Present', - companyLink: 'https://comapny.com' + companyLink: 'https://comapny.com', }, { company: 'Company name 2', @@ -464,7 +464,7 @@ module.exports = { position: 'Software Engineer', from: 'July 2019', to: 'Present', - companyLink: 'https://company1.com' + companyLink: 'https://company1.com', }, { company: 'Company name 2',