diff --git a/config/default.env b/config/default.env index b6af917..e852647 100644 --- a/config/default.env +++ b/config/default.env @@ -14,6 +14,7 @@ KLAYTN_URL_NAME = 'Main Network' KLAYTN_MAINNET_URL = 'https://wallet.klaytn.foundation' KLAYTN_BAOBAB_URL = 'https://baobab.wallet.klaytn.foundation' KLAYTN_KLAY_UINT = 'KLAY' +KLAYTN_FINDER_URL = 'https://klaytnfinder.io' # logger LOGGER_PATH = './logs/api-access' diff --git a/src/components/Nav.js b/src/components/Nav.js index 0f81ad6..eb24ad6 100644 --- a/src/components/Nav.js +++ b/src/components/Nav.js @@ -3,7 +3,7 @@ import { Link } from 'react-router' import cx from 'classnames' import TabList from 'components/TabList' -import { KLAYTN_SCOPE_URL,KLAYTN_DOCS_URL,KLAYTN_IDE_URL, KLAYTN_URL_NAME } from 'walletConstants/url' +import { KLAYTN_SCOPE_URL,KLAYTN_DOCS_URL,KLAYTN_IDE_URL, KLAYTN_URL_NAME, KLAYTN_FINDER_URL } from 'walletConstants/url' import './Nav.scss' let navLinks @@ -13,7 +13,7 @@ if(KLAYTN_URL_NAME === 'Main Network'){ { title: 'Create Account', menuClass: 'menu-create', link: '/create', icon: 'icon-create', }, { title: 'View Account Info', link: '/access', dropDown: false , icon: 'icon-info' }, { title: 'Send KLAY & Token', link: '/transfer', search:'?next=transfer', dropDown: false , icon: 'icon-send' }, - { title: 'More', menuClass: 'menu-more', link: null, isDropDown: true, icon: 'icon-more', dropDown: true , menu: [{name: 'Klaytnscope',pageMove: true, subLink: KLAYTN_SCOPE_URL}, {name: 'Klaytn IDE', pageMove: true, subLink: KLAYTN_IDE_URL },{name: 'Klaytn Docs', pageMove: true, subLink: KLAYTN_DOCS_URL }]}, + { title: 'More', menuClass: 'menu-more', link: null, isDropDown: true, icon: 'icon-more', dropDown: true , menu: [{name: 'Klaytnfinder', pageMove: true, subLink: KLAYTN_FINDER_URL}, {name: 'Klaytnscope', pageMove: true, subLink: KLAYTN_SCOPE_URL}, {name: 'Remix IDE', pageMove: true, subLink: KLAYTN_IDE_URL }, {name: 'Klaytn Docs', pageMove: true, subLink: KLAYTN_DOCS_URL }]}, ] }else{ navLinks = [ @@ -22,7 +22,7 @@ if(KLAYTN_URL_NAME === 'Main Network'){ { title: 'View Account Info', link: '/access', dropDown: false , icon: 'icon-info' }, { title: 'Send KLAY & Token', link: '/transfer', search:'?next=transfer', dropDown: false , icon: 'icon-send' }, { title: 'KLAY Faucet', link: '/faucet', dropDown: false ,search: '?next=faucet', icon: 'icon-faucet' }, - { title: 'More', menuClass: 'menu-more', link: null, isDropDown: true, icon: 'icon-more', dropDown: true , menu: [{name: 'Klaytnscope',pageMove: true, subLink: KLAYTN_SCOPE_URL}, {name: 'Klaytn IDE', pageMove: true, subLink: KLAYTN_IDE_URL },{name: 'Klaytn Docs', pageMove: true, subLink: KLAYTN_DOCS_URL }]}, + { title: 'More', menuClass: 'menu-more', link: null, isDropDown: true, icon: 'icon-more', dropDown: true , menu: [{name: 'Klaytnfinder', pageMove: true, subLink: KLAYTN_FINDER_URL}, {name: 'Klaytnscope', pageMove: true, subLink: KLAYTN_SCOPE_URL}, {name: 'Remix IDE', pageMove: true, subLink: KLAYTN_IDE_URL }, {name: 'Klaytn Docs', pageMove: true, subLink: KLAYTN_DOCS_URL }]}, ] } diff --git a/src/constants/url.js b/src/constants/url.js index a66dd3b..06c1dd0 100644 --- a/src/constants/url.js +++ b/src/constants/url.js @@ -10,6 +10,7 @@ export const KLAYTN_URL_NAME= process && process.env.KLAYTN_URL_NAME export const KLAYTN_MAINNET_URL= process && process.env.KLAYTN_MAINNET_URL export const KLAYTN_BAOBAB_URL= process && process.env.KLAYTN_BAOBAB_URL export const KLAYTN_KLAY_UINT= process && process.env.KLAYTN_KLAY_UINT +export const KLAYTN_FINDER_URL = process && process.env.KLAYTN_FINDER_URL console.log(process.env.KLAYTN_IDE_URL) export default KLAYTN_SCOPE_URL