Skip to content

Commit

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

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


function App() {
const { connect, connectors } = useConnect()
const { disconnect } = useDisconnect()
Expand All @@ -16,13 +16,17 @@ function App() {

const cartridgeConnector = connectors[0]

const bm = useBiometryManagerRaw();


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

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


return (
<>
<div>
Expand Down Expand Up @@ -52,16 +56,20 @@ function App() {
</button>
</div>

{/* <button onClick={() => {
biometryManager?.requestAccess({ reason: 'pwease'}).then(console.log)
<button onClick={() => {
if (!bm.result) return
bm.result.requestAccess({ reason: 'pwease'}).then(console.log)
}}>
gib data
</button>
<div className="card">
<button onClick={() => biometryManager?.openSettings()}>
<button onClick={() => {
if (!bm.result) return
bm.result.openSettings()
}}>
Bio settings
</button>
</div> */}
</div>
</>
)
}
Expand Down

0 comments on commit 4e4b9ce

Please sign in to comment.