Skip to content

Commit 313ef7a

Browse files
committed
📦 NEW: project condition
1 parent 9d01cb7 commit 313ef7a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

components/Card.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useState, useEffect } from 'react';
22
import Link from 'next/link';
33
import styles from '../styles/Card.module.css';
44

5-
const Card = ({ url, name, pod, github, linkedin, bio, openPopupboxForPod }) => {
5+
const Card = ({ url, name, pod, github, linkedin, bio, project, openPopupboxForPod }) => {
66
const [podClass, setPodClass] = useState(styles.card);
77
useEffect(() => {
88
if (pod === true) {
@@ -15,7 +15,7 @@ const Card = ({ url, name, pod, github, linkedin, bio, openPopupboxForPod }) =>
1515
<img src={url} alt={name} />
1616
<h3>{name}</h3>
1717
<div className={styles.social}>
18-
{pod === true ? (
18+
{pod === true && project === false ? (
1919
<>
2020
<Link href={github} passHref={true}>
2121
<a>
@@ -44,11 +44,7 @@ const Card = ({ url, name, pod, github, linkedin, bio, openPopupboxForPod }) =>
4444
)}
4545
</div>
4646
<div className={styles.read_more_btn}>
47-
{/* <Link href={more} passHref={true}> */}
48-
{/* <a> */}
4947
<button onClick={() => openPopupboxForPod(bio)}>Read More</button>
50-
{/* </a> */}
51-
{/* </Link> */}
5248
</div>
5349
</div>
5450
);

0 commit comments

Comments
 (0)