@@ -3,6 +3,7 @@ import styled from 'styled-components';
33import { Trans , useTranslation } from 'react-i18next' ;
44import { ms } from '../../styles/helpers' ;
55import TezosIcon from '../TezosIcon/' ;
6+ import { openLink } from '../../utils/general' ;
67
78const Container = styled . div `
89 display: flex;
@@ -44,12 +45,15 @@ interface Props {
4445 message : string ;
4546}
4647
48+ const NetworkErrorLink = 'https://cryptonomic.zendesk.com/hc/en-us/articles/6587794089101' ;
49+ const ConseilErrorLink = 'https://cryptonomic.zendesk.com/hc/en-us/articles/6587884720653' ;
50+
4751const NodesStatus = ( props : Props ) => {
4852 const { message } = props ;
4953 const { t } = useTranslation ( ) ;
5054
51- function goTo ( ) {
52- console . log ( 'goto' ) ;
55+ function goTo ( link ) {
56+ openLink ( link ) ;
5357 }
5458
5559 function onGetNodeStatus ( msg ) {
@@ -58,7 +62,7 @@ const NodesStatus = (props: Props) => {
5862 < Trans i18nKey = "nodes.errors.tezos_node" >
5963 < MediumText > We’re currently experiencing network issues.</ MediumText >
6064 Your assets are safe but you may not be able to complete new transactions.
61- < Link onClick = { ( ) => goTo ( ) } > Learn more </ Link >
65+ < Link onClick = { ( ) => goTo ( NetworkErrorLink ) } > Learn more </ Link >
6266 </ Trans >
6367 ) ;
6468 }
@@ -67,7 +71,7 @@ const NodesStatus = (props: Props) => {
6771 < Trans i18nKey = "nodes.errors.not_synced" >
6872 < MediumText > We’re currently experiencing network issues.</ MediumText >
6973 Your assets are safe but you may not be able to see an updated transaction history. Please check back later while we work on a fix.
70- < Link onClick = { ( ) => goTo ( ) } > Learn more </ Link >
74+ < Link onClick = { ( ) => goTo ( ConseilErrorLink ) } > Learn more </ Link >
7175 </ Trans >
7276 ) ;
7377 }
0 commit comments