Skip to content

Commit

Permalink
Fixed app mode switch URLs for testnet.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Jul 19, 2023
1 parent 45695be commit b33f613
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/stateless/components/layout/SdaNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useTranslation } from 'react-i18next'

import { DaoPageMode, DaoTabId } from '@dao-dao/types'
import { SdaNavigationProps } from '@dao-dao/types/stateless/SdaNavigation'
import { getDaoPath as baseGetDaoPath } from '@dao-dao/utils'
import { MAINNET, getDaoPath as baseGetDaoPath } from '@dao-dao/utils'

import { useDaoInfoContext, useDaoNavHelpers } from '../../hooks'
import { DaoImage } from '../dao/DaoImage'
Expand Down Expand Up @@ -42,7 +42,7 @@ const getForceCompact = () =>
? true
: undefined

const DAPP_URL_PREFIX = `https://daodao.zone`
const DAPP_URL_PREFIX = `https://${MAINNET ? '' : 'testnet.'}daodao.zone`

export const SdaNavigation = ({
tabs,
Expand Down
4 changes: 2 additions & 2 deletions packages/stateless/pages/DaoDappTabbedHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useEffect, useRef } from 'react'
import { useTranslation } from 'react-i18next'

import { DaoDappTabbedHomeProps, DaoPageMode } from '@dao-dao/types'
import { getDaoPath as baseGetDaoPath } from '@dao-dao/utils'
import { MAINNET, getDaoPath as baseGetDaoPath } from '@dao-dao/utils'

import {
IconButtonLink,
Expand All @@ -18,7 +18,7 @@ import { DaoSplashHeader } from '../components/dao/DaoSplashHeader'
import { useDaoInfoContext } from '../hooks/useDaoInfoContext'
import { useDaoNavHelpers } from '../hooks/useDaoNavHelpers'

const SDA_URL_PREFIX = `https://dao.daodao.zone`
const SDA_URL_PREFIX = `https://dao.${MAINNET ? '' : 'testnet.'}daodao.zone`

export const DaoDappTabbedHome = ({
daoInfo,
Expand Down

0 comments on commit b33f613

Please sign in to comment.