Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit a3f9739

Browse files
refactor: remove <a> tag
1 parent 1ccf5a6 commit a3f9739

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

src/components/Footer/Footer.module.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
border-radius: rem(1.7);
6161
font-size: rem(1.4);
6262
font-weight: bold;
63+
text-decoration: none;
64+
cursor: pointer;
6365
}
6466
.Telegram {
6567
display: flex;

src/components/Footer/index.tsx

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,23 @@ const Footer = () => {
1313
Discuss ideas and share solutions with developers worldwide.
1414
</p>
1515
<div className={styles.Communities}>
16-
<a
16+
<button
17+
className={styles.communityButton}
18+
onClick={() => window.open('https://deriv.vanillacommunity.com/')}
1719
data-testid='community-link'
18-
style={{ textDecoration: 'none' }}
19-
href='https://deriv.vanillacommunity.com/'
20-
target='_blank'
21-
rel='noreferrer'
2220
>
23-
<button className={styles.communityButton}>Join our community</button>
24-
</a>
25-
<a
21+
Join our community
22+
</button>
23+
<button
24+
className={styles.communityButton}
25+
onClick={() => window.open('https://t.me/+g6FV5tFY1u9lZGE1')}
2626
data-testid='telegram-link'
27-
style={{ textDecoration: 'none' }}
28-
href='https://t.me/+g6FV5tFY1u9lZGE1'
29-
target='_blank'
30-
rel='noreferrer'
3127
>
32-
<button className={styles.communityButton}>
33-
<div className={styles.Telegram}>
34-
<img src='/img/telegram.svg' className={styles.TelegramIcon} />
35-
<p>Telegram</p>
36-
</div>
37-
</button>
38-
</a>
28+
<div className={styles.Telegram}>
29+
<img src='/img/telegram.svg' className={styles.TelegramIcon} />
30+
<p>Telegram</p>
31+
</div>
32+
</button>
3933
</div>
4034
</section>
4135
<section className={styles.FooterBody}>

0 commit comments

Comments
 (0)