From fb2915ba37534a690aeb6eb92ff0e9d46a31a5f7 Mon Sep 17 00:00:00 2001 From: Linkie Link Date: Thu, 26 Oct 2023 09:38:20 +0200 Subject: [PATCH] Link changelog (#589) * env: update RPC endpoint * feat: added changelog link to the footer version --- .env.example | 2 +- src/components/Footer.tsx | 16 ++++++++++++---- src/types/enums/docURL.ts | 1 + 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 079078d3..25226c89 100644 --- a/.env.example +++ b/.env.example @@ -29,7 +29,7 @@ NEXT_PUBLIC_INCENTIVES=osmo1nkahswfr8shg8rlxqwup0vgahp0dk4x8w6tkv3rra8rratnut36s NEXT_PUBLIC_SWAPPER=osmo1wee0z8c7tcawyl647eapqs4a88q8jpa7ddy6nn2nrs7t47p2zhxswetwla NEXT_PUBLIC_PYTH=osmo13ge29x4e2s63a8ytz2px8gurtyznmue4a69n5275692v3qn3ks8q7cwck7 NEXT_PUBLIC_PYTH_ENDPOINT=https://hermes.pyth.network/api -NEXT_PUBLIC_MAINNET_REST=https://osmosis.rpc.p2p.world/4dqst8e8Cgd2HMb2HDNkimP7NIkcbjuk/lcd/ +NEXT_PUBLIC_MAINNET_REST=https://osmosis-node.marsprotocol.io/GGSFGSFGFG34/osmosis-rpc-front/ NEXT_PUBLIC_CANDLES_ENDPOINT=https://osmosis-candles.marsprotocol.io/ NEXT_PUBLIC_WALLET_CONNECT_ID=d93fdffb159bae5ec87d8fee4cdbb045 CHARTING_LIBRARY_REPOSITORY=github.com/tradingview/charting_library diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index f7ef3214..a885838f 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,14 +1,22 @@ -import Text from 'components/Text' +import { TextLink } from 'components/TextLink' +import { DocURL } from 'types/enums/docURL' import packageInfo from '../../package.json' export default function Footer() { + const version = `v${packageInfo.version}` + const flatVersion = packageInfo.version.split('.').join('') return ( ) diff --git a/src/types/enums/docURL.ts b/src/types/enums/docURL.ts index aaeeec0d..8f7ffb77 100644 --- a/src/types/enums/docURL.ts +++ b/src/types/enums/docURL.ts @@ -1,6 +1,7 @@ export enum DocURL { ADVANCED_TRADING_URL = 'https://docs.marsprotocol.io/docs/learn/mars-v2/trade/margin', BORROW_LENDING_URL = 'https://docs.marsprotocol.io/docs/learn/mars-v2/borrow', + CHANGE_LOG_URL = 'https://docs.marsprotocol.io/docs/overview/changelog', COOKIE_POLICY_URL = 'https://docs.marsprotocol.io/docs/overview/legal/cookie-policy', DOCS_URL = 'https://docs.marsprotocol.io/', FARM_INTRO_URL = 'https://docs.marsprotocol.io/docs/learn/tutorials/farming/farming-intro',