Skip to content

Commit

Permalink
Merge pull request #412 from oasisprotocol/csillag/network-selector-c…
Browse files Browse the repository at this point in the history
…entralize

NetworkSelector: get list of networks from route utils
  • Loading branch information
csillag committed May 22, 2023
2 parents 89c5072 + ddf156b commit a40d9d6
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 a40d9d6

Please sign in to comment.