Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #113 from praveen-klaytn/dev
Browse files Browse the repository at this point in the history
Added Klaytn Finder
  • Loading branch information
Junghyun Colin Kim authored Mar 19, 2023
2 parents 4e5f0fa + 2bd0452 commit f07523f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/default.env
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions src/components/Nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = [
Expand All @@ -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 }]},
]
}

Expand Down
1 change: 1 addition & 0 deletions src/constants/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f07523f

Please sign in to comment.