Skip to content

Commit

Permalink
add ok button
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Aug 22, 2024
1 parent 587510c commit 2c30f66
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect, useState } from 'react'
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import twaLogo from './assets/tapps.png'
import viteLogo from '/vite.svg'
Expand All @@ -17,16 +17,6 @@ function App() {

const cartridgeConnector = connectors[0]

useEffect(() => {
WebApp.BiometricManager.init(() => {
WebApp.BiometricManager.requestAccess({
reason: 'we need your biometric data',
})
})
WebApp.SettingsButton.show()
WebApp.SettingsButton.isVisible = true
}, [])

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

<button onClick={() => {
WebApp.SettingsButton.show()
WebApp.BiometricManager.init(() => {
WebApp.BiometricManager.requestAccess({
reason: 'we need your biometric data',
})
})
}}>
ok
</button>
<div className="card">
<button onClick={() => WebApp.BiometricManager.openSettings()}>
Bio settings
Expand Down

0 comments on commit 2c30f66

Please sign in to comment.