Skip to content

Commit

Permalink
Fix: old app export link (#1625)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh authored Feb 1, 2023
1 parent a55d52b commit aad18d9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/common/PsaBanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@ import styles from './index.module.css'
import { hasFeature } from '@/utils/chains'
import { useCurrentChain } from '@/hooks/useChains'
import useLocalStorage from '@/services/local-storage/useLocalStorage'
import { useRouter } from 'next/router'
import { selectAllAddressBooks } from '@/store/addressBookSlice'
import { useAppSelector } from '@/store'

const WARNING_BANNER = 'WARNING_BANNER'
const OLD_APP = 'https://gnosis-safe.io/app'

const ExportLink = ({ children }: { children: ReactNode }): ReactElement => {
const router = useRouter()
const safeAddress = router.query.safe as string
const url = safeAddress ? `${OLD_APP}/${safeAddress}/settings/details` : `${OLD_APP}/export`
const url = `${OLD_APP}/export`

return (
<a href={url} target="_blank" rel="noreferrer">
Expand Down

0 comments on commit aad18d9

Please sign in to comment.