Skip to content

Commit

Permalink
show settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Aug 22, 2024
1 parent fc1b696 commit 36bf8dc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import viteLogo from '/vite.svg'
import './App.css'

import { useConnect, useDisconnect, useAccount } from '@starknet-react/core'
import { useBiometryManager } from '@telegram-apps/sdk-react'
import { useBiometryManager, useSettingsButton } from '@telegram-apps/sdk-react'
import { useEffect } from 'react'


function App() {
Expand All @@ -15,7 +16,12 @@ function App() {

const cartridgeConnector = connectors[0]

const biometryManager = useBiometryManager()
const biometryManager = useBiometryManager(false)
const settings = useSettingsButton(false)

useEffect(() => {
settings?.show()
}, [settings])

return (
<>
Expand Down

0 comments on commit 36bf8dc

Please sign in to comment.