Skip to content

Commit 6873e01

Browse files
committed
made link optional
1 parent 54bdce3 commit 6873e01

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

components/containers/Card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function Card({
2727
<h2 className={styles.title}>{title}</h2>
2828
<div className={styles.content}>
2929
<p>
30-
{content} <Link href={link}>{linkText}</Link>
30+
{content} {link && <Link href={link}>{linkText}</Link>}
3131
</p>
3232
</div>
3333
</div>

components/containers/CardsColumns.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ export default function CardsColumns({
4141
<div className={styles.inner__content}>
4242
<Card
4343
title={title}
44-
image={images?images[index]:undefined}
45-
altTag={altTags?altTags[index]:undefined}
44+
image={images ? images[index] : undefined}
45+
altTag={altTags ? altTags[index] : undefined}
4646
content={content[index]}
47-
link={links[index]}
48-
linkText={linkText[index]}
47+
link={links ? links[index] : undefined}
48+
linkText={linkText ? linkText[index] : undefined}
4949
key={index}
5050
/>
5151
</div>

pages/about.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ export default function AboutUs() {
101101
'To provide a safe space for juniors to learn how to communicate in a simulated professional environment.',
102102
'To offer more detailed tasks (Issues) and help the developer assimilate the logical mindset required in a structured project, under guidance following the industry’s best practices throughout the entire process.',
103103
]}
104-
links={['/about', '/contact']}
105-
linkText={['Learn more', 'Contact us']}
106104
bgColor={primaryAccent}
107105
customInnerClass='our-goals'
108106
/>

0 commit comments

Comments
 (0)