Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 770aee7

Browse files
committed
Use constants instead of hardcode on Footer
1 parent d26c5cc commit 770aee7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

frontend/src/components/Footer/index.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ import {
99
IconGitHub,
1010
IconDiscourse,
1111
} from '../Icons';
12+
import {
13+
DEVELOPER_DAO_CONTRACT,
14+
ETHER_SCAN_LINK_PREFIX,
15+
OPENSEA_COLLECTION_LINK,
16+
} from '../../utils/DeveloperDaoConstants';
1217

1318
function Footer() {
1419
const { t } = useTranslation();
@@ -24,7 +29,7 @@ function Footer() {
2429
<a
2530
title="OpenSea"
2631
className="mx-2 block"
27-
href="https://opensea.io/collection/devs-for-revolution"
32+
href={OPENSEA_COLLECTION_LINK}
2833
target="_blank"
2934
rel="noreferrer"
3035
>
@@ -35,7 +40,7 @@ function Footer() {
3540
<a
3641
title="Etherscan"
3742
className="mx-2 block"
38-
href="https://etherscan.io/address/0x25ed58c027921e14d86380ea2646e3a1b5c55a8b"
43+
href={`${ETHER_SCAN_LINK_PREFIX}/${DEVELOPER_DAO_CONTRACT}`}
3944
target="_blank"
4045
rel="noreferrer"
4146
>

0 commit comments

Comments
 (0)