Skip to content

Commit

Permalink
NetworkSelector: get list of networks from route utils
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed May 22, 2023
1 parent b1bd581 commit 457ebdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/pages/HomePage/Graph/NetworkSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { styled } from '@mui/material/styles'
import { COLORS } from '../../../../../styles/theme/colors'
import { Network } from '../../../../../types/network'
import Collapse from '@mui/material/Collapse'
import { RouteUtils } from '../../../../utils/route-utils'

const StyledNetworkSelector = styled(Box)(() => ({
position: 'absolute',
Expand Down Expand Up @@ -69,7 +70,7 @@ export const NetworkSelector: FC<NetworkSelectorProps> = ({ network, setNetwork
const theme = useTheme()
const isMobile = useMediaQuery(theme.breakpoints.down('sm'))
const [open, setOpen] = useState(false)
const options: Network[] = ['mainnet', 'testnet']
const options: Network[] = RouteUtils.getEnabledNetworks()
const labels = getLabels(t)

return (
Expand Down

0 comments on commit 457ebdf

Please sign in to comment.