Skip to content

Commit

Permalink
remove showUrl prop
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan4m1 committed Dec 14, 2023
1 parent 316df10 commit 0747ac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/components/gridCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ export default function GridCard({
svgIcon,
children,
githubUrl,
url,
showUrl = false
url
}) {
return (
<Card className="mb-2">
Expand Down Expand Up @@ -44,7 +43,6 @@ export default function GridCard({
className="me-2"
variant="info"
>
{showUrl && url.replace(/https?:\/\//, '').replace(/\/$/, '')}{' '}
<FontAwesomeIcon icon={faExternalLinkSquare} />
</Button>
)}
Expand Down Expand Up @@ -76,6 +74,5 @@ GridCard.propTypes = {
svgIcon: PropTypes.object,
children: PropTypes.node.isRequired,
githubUrl: PropTypes.string,
url: PropTypes.string,
showUrl: PropTypes.bool
url: PropTypes.string
};
1 change: 0 additions & 1 deletion src/pages/love.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export default function LovePage() {
icon={item.icon}
svgIcon={item.svgIcon}
url={item.url}
showUrl
>
<p>{item.description}</p>
</GridCard>
Expand Down

0 comments on commit 0747ac8

Please sign in to comment.