diff --git a/apps/explorer/.env b/apps/explorer/.env index 609eae1bf..4969886ac 100644 --- a/apps/explorer/.env +++ b/apps/explorer/.env @@ -14,6 +14,7 @@ NX_ORACLE_PROOFS_URL=https://raw.githubusercontent.com/vegaprotocol/well-known/m NX_VEGA_GOVERNANCE_URL=https://stagnet1.governance.vega.xyz NX_ANNOUNCEMENTS_CONFIG_URL=https://raw.githubusercontent.com/vegaprotocol/announcements/fairground/announcements.jsoo NX_VEGA_NETWORKS='{"TESTNET":"https://explorer.fairground.wtf","MAINNET":"https://explorer.vega.xyz"}' +NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions # App flags NX_EXPLORER_ASSETS=1 diff --git a/apps/explorer/src/app/components/footer/footer.tsx b/apps/explorer/src/app/components/footer/footer.tsx index e41fe3253..6855e5964 100644 --- a/apps/explorer/src/app/components/footer/footer.tsx +++ b/apps/explorer/src/app/components/footer/footer.tsx @@ -48,11 +48,13 @@ export const Footer = () => { -
- - {showFullFeedbackLabel ? t('Share your feedback') : t('Feedback')} - -
+ {ENV.addresses.feedback ? ( +
+ + {showFullFeedbackLabel ? t('Share your feedback') : t('Feedback')} + +
+ ) : null} ); @@ -62,9 +64,5 @@ const NodeUrl = ({ url }: { url: string }) => { // get base url from api url, api sub domain const urlObj = new URL(url); const nodeUrl = urlObj.origin.replace(/^[^.]+\./g, ''); - return ( - - {nodeUrl} - - ); + return {nodeUrl}; };