Skip to content

Commit

Permalink
fix oncontinue
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Jul 31, 2024
1 parent 3703f26 commit 6234169
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions components/Discovery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ScanConnect from './views/ScanConnect'
import AboutWallets from './views/AboutWallets'

import { useModalContext } from '@chakra-ui/react'
import { ComponentProps, useCallback, useEffect, useRef, useState } from 'react'
import { ComponentProps, useCallback, useEffect, useState } from 'react'
import { useWallets } from '../hooks/useWallets'
import { Wallet } from '../data/wallets'
import * as fcl from '@onflow/fcl'
Expand Down Expand Up @@ -123,14 +123,7 @@ export default function Discovery() {
case VIEWS.SCAN_INSTALL:
viewContent = (
<ScanInstall
// TODO: Implement next page
onContinue={() => {
if (isCollapsed) {
setCurrentView(VIEWS.CONNECT_WALLET)
} else {
setCurrentView(VIEWS.ABOUT_WALLETS)
}
}}
onContinue={() => onSelectWallet(selectedWallet)}
wallet={selectedWallet}
/>
)
Expand Down

0 comments on commit 6234169

Please sign in to comment.