Skip to content

Commit

Permalink
chore: init
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Aug 22, 2024
1 parent 454c21d commit cde5581
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from 'react'
import { useEffect, useState } from 'react'
import reactLogo from './assets/react.svg'
import twaLogo from './assets/tapps.png'
import viteLogo from '/vite.svg'
Expand All @@ -24,6 +24,16 @@ 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

0 comments on commit cde5581

Please sign in to comment.