Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dib542 committed Apr 7, 2024
1 parent a99c983 commit 6022eb0
Show file tree
Hide file tree
Showing 10 changed files with 480 additions and 820 deletions.
1 change: 0 additions & 1 deletion .env.beta
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ REACT_APP__CHAIN_PRETTY_NAME=Neutron

# App settings
REACT_APP__DEFAULT_PAIR=NEWT/NTRN
REACT_APP__HIDE_ORDERBOOK=1

# Chain data sources
REACT_APP__INDEXER_API=https://indexer.beta.duality.xyz
Expand Down
8 changes: 2 additions & 6 deletions src/components/Header/routes.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
const { REACT_APP__DEFAULT_PAIR = '', REACT_APP__HIDE_ORDERBOOK = '' } =
import.meta.env;
const { REACT_APP__DEFAULT_PAIR = '' } = import.meta.env;

export const pageLinkMap = {
[['/swap', REACT_APP__DEFAULT_PAIR].join('/')]: 'Swap',
'/pools': 'Pools',
// conditionally add the orderbook in
...(!REACT_APP__HIDE_ORDERBOOK && {
[['/orderbook', REACT_APP__DEFAULT_PAIR].join('/')]: 'Orderbook',
}),
[['/orderbook', REACT_APP__DEFAULT_PAIR].join('/')]: 'Orderbook',
'/portfolio': 'Portfolio',
'/bridge': 'Bridge',
'https://duality.gitbook.io/duality-documentation/user-interface': 'Docs',
Expand Down
Loading

0 comments on commit 6022eb0

Please sign in to comment.