File tree Expand file tree Collapse file tree
explore/wallets/_components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export const communityLinks = [
7676 } ,
7777 {
7878 headerId : "discord" ,
79- href : "https://discord.com/invite/py55egyaGy " ,
79+ href : "https://discord.gg/5ncBGuj7 " ,
8080 } ,
8181 {
8282 headerId : "coinmarketcap" ,
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export function Community() {
5656 testID : "community-youtube" ,
5757 } ,
5858 {
59- href : "https://discord.com/invite/py55egyaGy " ,
59+ href : "https://discord.gg/5ncBGuj7 " ,
6060 title : entries [ 1 ] . labels [ 4 ] . title ,
6161 testID : "community-discord" ,
6262 } ,
Original file line number Diff line number Diff line change 55 AiFillYoutube ,
66 AiOutlineTwitter ,
77} from "react-icons/ai" ;
8- import { FaTelegramPlane } from "react-icons/fa" ;
8+ import { FaDiscord , FaTelegramPlane } from "react-icons/fa" ;
99
1010interface SocialsRowProps {
1111 language : string ;
@@ -16,6 +16,24 @@ export default function SocialsRow(props: SocialsRowProps): JSX.Element {
1616 const { language, customStyle } = props ;
1717 return (
1818 < div className = { classNames ( customStyle ) } >
19+ < a
20+ href = { `https://t.me/defiblockchain${ language } ` }
21+ target = "_blank"
22+ rel = "noreferrer"
23+ data-testid = "socials-row-telegram"
24+ id = "Telegram"
25+ >
26+ < FaTelegramPlane className = "hover-icons" size = { 24 } />
27+ </ a >
28+ < a
29+ href = "https://discord.gg/5ncBGuj7"
30+ target = "_blank"
31+ rel = "noreferrer"
32+ data-testid = "socials-row-discord"
33+ id = "Discord"
34+ >
35+ < FaDiscord className = "hover-icons" size = { 24 } />
36+ </ a >
1937 < a
2038 href = "https://github.com/DeFiCh/ain"
2139 target = "_blank"
@@ -43,15 +61,6 @@ export default function SocialsRow(props: SocialsRowProps): JSX.Element {
4361 >
4462 < AiFillYoutube className = "hover-icons" size = { 24 } />
4563 </ a >
46- < a
47- href = { `https://t.me/defiblockchain${ language } ` }
48- target = "_blank"
49- rel = "noreferrer"
50- data-testid = "socials-row-telegram"
51- id = "Telegram"
52- >
53- < FaTelegramPlane className = "hover-icons" size = { 24 } />
54- </ a >
5564 < a
5665 href = "https://x.com/defichain"
5766 target = "_blank"
Original file line number Diff line number Diff line change @@ -54,9 +54,7 @@ export function ForDailyUseSection() {
5454 text = { IconType . APPSTORE }
5555 />
5656 < CardLink
57- // Temporarily link until the app is available on Google Play
58- // url="https://play.google.com/store/apps/details?id=com.defichain.app"
59- url = "https://www.reddit.com/r/defiblockchain/comments/1n1figg/update_on_the_missing_light_wallet_in_the_google/"
57+ url = "https://play.google.com/store/apps/details?id=com.defichaincommunity.app"
6058 descText = "Get It On"
6159 text = { IconType . GOOGLE_PLAY }
6260 />
Original file line number Diff line number Diff line change @@ -36,23 +36,12 @@ export default function HomePage({
3636}
3737
3838export async function getStaticProps ( ) {
39- try {
40- const posts = await getBlogspotPosts ( ) ;
41- const props = { blogPosts : posts . slice ( 0 , 8 ) } ;
39+ const posts = await getBlogspotPosts ( ) . catch ( ( ) => [ ] ) ;
40+ const props = { blogPosts : posts . slice ( 0 , 8 ) } ;
4241
43- // On Netlify we serve fully static to avoid ISR function crashes
44- if ( process . env . NETLIFY ) {
45- return { props } ;
46- }
47-
48- return { props, revalidate : 3600 } ;
49- } catch {
50- const props = { blogPosts : [ ] } ;
51-
52- if ( process . env . NETLIFY ) {
53- return { props } ;
54- }
55-
56- return { props, revalidate : 600 } ;
57- }
42+ const isDeployPreview = process . env . CONTEXT === "deploy-preview" ;
43+ if ( isDeployPreview ) {
44+ return { props } ;
45+ } // fully static for previews
46+ return { props, revalidate : 3600 } ; // ISR for prod
5847}
You can’t perform that action at this time.
0 commit comments