Link changelog (#589)
* env: update RPC endpoint * feat: added changelog link to the footer version
This commit is contained in:
parent
5afead47f2
commit
fb2915ba37
@ -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
|
||||
|
@ -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 (
|
||||
<footer className='flex items-center justify-center w-full h-6 -mt-6'>
|
||||
<div className='w-full px-4 pb-4 text-right'>
|
||||
<Text size='xs' className='opacity-50'>
|
||||
v{packageInfo.version}
|
||||
</Text>
|
||||
<TextLink
|
||||
className='text-xs text-white opacity-50 hover:text-white hover:opacity-80'
|
||||
href={`${DocURL.CHANGE_LOG_URL}#release-v${flatVersion}`}
|
||||
target='_blank'
|
||||
title={`Mars Protocol ${version} change log`}
|
||||
>
|
||||
{version}
|
||||
</TextLink>
|
||||
</div>
|
||||
</footer>
|
||||
)
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user