Skip to content

Commit

Permalink
popp
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Aug 22, 2024
1 parent 0f4763f commit a00300f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 8 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import './App.css'
import WebApp from '@twa-dev/sdk'
import { useConnect, useDisconnect, useAccount } from '@starknet-react/core'



function App() {
const [count] = useState(0)

Expand Down Expand Up @@ -48,10 +50,13 @@ function App() {

<button onClick={() => {
WebApp.BiometricManager.init(() => {
WebApp.BiometricManager.requestAccess({
WebApp.showConfirm('give data', () => WebApp.BiometricManager.requestAccess({
reason: 'we need your biometric data',
})
})
}))
})
WebApp.showConfirm('give data', () => WebApp.BiometricManager.requestAccess({
reason: 'we need your biometric data',
}))
}}>
ok
</button>
Expand Down
2 changes: 0 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import './index.css'
import WebApp from '@twa-dev/sdk'
import { StarknetProvider } from './providers/StarknetProvider.tsx'

WebApp.SettingsButton.isVisible = true
WebApp.BiometricManager.init()
WebApp.ready();

ReactDOM.createRoot(document.getElementById('root')!).render(
Expand Down

0 comments on commit a00300f

Please sign in to comment.