Skip to content

Commit 26c8af9

Browse files
authored
Merge pull request #491 from Cryptonomic/feature/478-server-status-alert-link
added some error links
2 parents 15e47cf + 94fc415 commit 26c8af9

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/components/NodesStatus/index.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import styled from 'styled-components';
33
import { Trans, useTranslation } from 'react-i18next';
44
import { ms } from '../../styles/helpers';
55
import TezosIcon from '../TezosIcon/';
6+
import { openLink } from '../../utils/general';
67

78
const 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+
4751
const 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

Comments
 (0)