@@ -2,8 +2,17 @@ import Link from 'next/link';
22import { useRouter } from 'next/router' ;
33import { useEffect , useState } from 'react' ;
44import { FormattedMessage } from 'react-intl' ;
5- import { getIconComponentByName } from '../utils/icons-map' ;
6- import { LogoWithText } from './icons' ;
5+ import LogoWithText from './icons/LogoWithText' ;
6+ import Sigmaverse from './icons/Sigmaverse' ;
7+ import ErgoWiki from './icons/ErgoWiki' ;
8+ import Github from './icons/Github' ;
9+ import X from './icons/X' ;
10+ import Youtube from './icons/Youtube' ;
11+ import Telegram from './icons/Telegram' ;
12+ import Discord from './icons/Discord' ;
13+ import Reddit from './icons/Reddit' ;
14+ import Discourse from './icons/Discourse' ;
15+ import Coingecko from './icons/Coingecko' ;
716
817export default function Footer ( ) {
918 const [ postsData , setPostsData ] = useState ( [ ] ) ;
@@ -64,12 +73,12 @@ export default function Footer() {
6473 rel = "noreferrer"
6574 aria-label = "Sigmaverse website"
6675 >
67- { getIconComponentByName ( ' Sigmaverse' ) }
76+ < Sigmaverse />
6877 </ a >
6978 </ div >
7079 < div className = "box" >
71- < Link href = "/ecosystem/#Wiki" aria-label = "Ergo Wiki" >
72- { getIconComponentByName ( ' ErgoWiki' ) }
80+ < Link href = "/ecosystem/#Wiki" aria-label = "Ergo Wiki" prefetch = { false } >
81+ < ErgoWiki />
7382 </ Link >
7483 </ div >
7584 < div className = "box" >
@@ -79,7 +88,7 @@ export default function Footer() {
7988 rel = "noreferrer"
8089 aria-label = "Ergo Platform GitHub"
8190 >
82- { getIconComponentByName ( ' Github' ) }
91+ < Github />
8392 </ a >
8493 </ div >
8594 < div className = "box" >
@@ -89,7 +98,7 @@ export default function Footer() {
8998 rel = "noreferrer"
9099 aria-label = "Ergo Platform X (formerly Twitter)"
91100 >
92- { getIconComponentByName ( 'X' ) }
101+ < X />
93102 </ a >
94103 </ div >
95104 < div className = "box" >
@@ -99,7 +108,7 @@ export default function Footer() {
99108 rel = "noreferrer"
100109 aria-label = "Ergo Platform YouTube"
101110 >
102- { getIconComponentByName ( ' Youtube' ) }
111+ < Youtube />
103112 </ a >
104113 </ div >
105114 < div className = "box" >
@@ -109,7 +118,7 @@ export default function Footer() {
109118 rel = "noreferrer"
110119 aria-label = "Ergo Platform Telegram"
111120 >
112- { getIconComponentByName ( ' Telegram' ) }
121+ < Telegram />
113122 </ a >
114123 </ div >
115124 < div className = "box" >
@@ -119,7 +128,7 @@ export default function Footer() {
119128 rel = "noreferrer"
120129 aria-label = "Ergo Platform Discord"
121130 >
122- { getIconComponentByName ( ' Discord' ) }
131+ < Discord />
123132 </ a >
124133 </ div >
125134 < div className = "box" >
@@ -129,7 +138,7 @@ export default function Footer() {
129138 rel = "noreferrer"
130139 aria-label = "Ergo Platform Reddit"
131140 >
132- { getIconComponentByName ( ' Reddit' ) }
141+ < Reddit />
133142 </ a >
134143 </ div >
135144 < div className = "box" >
@@ -139,7 +148,7 @@ export default function Footer() {
139148 rel = "noreferrer"
140149 aria-label = "Ergo Forum"
141150 >
142- { getIconComponentByName ( ' Discourse' ) }
151+ < Discourse />
143152 </ a >
144153 </ div >
145154 < div className = "box" >
@@ -149,7 +158,7 @@ export default function Footer() {
149158 rel = "noreferrer"
150159 aria-label = "Ergo on CoinGecko"
151160 >
152- { getIconComponentByName ( ' Coingecko' ) }
161+ < Coingecko />
153162 </ a >
154163 </ div >
155164 </ div >
@@ -248,14 +257,14 @@ export default function Footer() {
248257 </ ul >
249258 </ div >
250259 < div >
251- < Link href = "/discover" >
260+ < Link href = "/discover" prefetch = { false } >
252261 < h3 className = "font-button text-black dark:text-white my-4 cursor-pointer" >
253262 < FormattedMessage defaultMessage = "DISCOVER" id = "footer.discover.title" />
254263 </ h3 >
255264 </ Link >
256265 < ul className = "hidden md:block" >
257266 < li className = "mb-4" >
258- < Link href = "/discover/#DiscoverERG" >
267+ < Link href = "/discover/#DiscoverERG" prefetch = { false } >
259268 < span className = "text-black dark:text-gray-300 cursor-pointer" >
260269 < FormattedMessage
261270 defaultMessage = "Discover ERG"
@@ -265,28 +274,28 @@ export default function Footer() {
265274 </ Link >
266275 </ li >
267276 < li className = "mb-4" >
268- < Link href = "/discover/#GrantsAndBounties" >
277+ < Link href = "/discover/#GrantsAndBounties" prefetch = { false } >
269278 < span className = "text-black dark:text-gray-300 cursor-pointer" >
270279 < FormattedMessage defaultMessage = "Grants & Bounties" id = "footer.discover.2" />
271280 </ span >
272281 </ Link >
273282 </ li >
274283 < li className = "mb-4" >
275- < Link href = "/discover/#FAQ" >
284+ < Link href = "/discover/#FAQ" prefetch = { false } >
276285 < span className = "text-black dark:text-gray-300 cursor-pointer" >
277286 < FormattedMessage defaultMessage = "FAQ" id = "footer.discover.3" />
278287 </ span >
279288 </ Link >
280289 </ li >
281290 < li className = "mb-4" >
282- < Link href = "/discover/#Explore" >
291+ < Link href = "/discover/#Explore" prefetch = { false } >
283292 < span className = "text-black dark:text-gray-300 cursor-pointer" >
284293 < FormattedMessage defaultMessage = "Explore" id = "footer.discover.4" />
285294 </ span >
286295 </ Link >
287296 </ li >
288297 < li className = "mb-4" >
289- < Link href = "/discover/#Documents" >
298+ < Link href = "/discover/#Documents" prefetch = { false } >
290299 < span className = "text-black dark:text-gray-300 cursor-pointer" >
291300 < FormattedMessage defaultMessage = "Documents" id = "footer.discover.5" />
292301 </ span >
@@ -295,7 +304,7 @@ export default function Footer() {
295304 </ ul >
296305 </ div >
297306 < div >
298- < Link href = "/ecosystem" >
307+ < Link href = "/ecosystem" prefetch = { false } >
299308 < h3 className = "font-button text-black dark:text-white my-4 cursor-pointer" >
300309 < FormattedMessage defaultMessage = "ECOSYSTEM" id = "footer.ecosystem.title" />
301310 </ h3 >
@@ -342,7 +351,7 @@ export default function Footer() {
342351 </ ul >
343352 </ div >
344353 < div >
345- < Link href = "/blog" >
354+ < Link href = "/blog" prefetch = { false } >
346355 < h3 className = "font-button text-black dark:text-white my-4 cursor-pointer" >
347356 < FormattedMessage defaultMessage = "BLOG" id = "footer.blog.title" />
348357 </ h3 >
@@ -365,7 +374,7 @@ export default function Footer() {
365374 ) }
366375 </ div >
367376 < div >
368- < Link href = "/news" >
377+ < Link href = "/news" prefetch = { false } >
369378 < h3 className = "font-button text-black dark:text-white my-4 cursor-pointer" >
370379 < FormattedMessage defaultMessage = "NEWS" id = "footer.news.title" />
371380 </ h3 >
0 commit comments