fix: 🐛 Add better logo image for Freja eID

This commit is contained in:
Andreas Eriksson 2022-04-24 18:19:52 +02:00
parent 46485dd3eb
commit 051df2da39
3 changed files with 9 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 365 B

View File

@ -1,3 +1,4 @@
/* eslint-disable no-console */
import { useApi } from '@skolplattformen/hooks'
import {
Button,
@ -47,7 +48,7 @@ const BankId = () => (
const FrejaEid = () => (
<Image
style={themedStyles.icon}
source={require('../assets/freja_eid_low.png')}
source={require('../assets/freja_eid_logo.png')}
accessibilityIgnoresInvertColors
/>
)
@ -91,13 +92,14 @@ export const Login = () => {
setLoginMethodId('thisdevice')
}
const loginHandler = async () => {
const user = await api.getUser()
await AppStorage.clearPersonalData(user)
showModal(false)
}
useEffect(() => {
const loginHandler = async () => {
console.debug('Runnning loginHandler')
const user = await api.getUser()
await AppStorage.clearPersonalData(user)
showModal(false)
}
api.on('login', loginHandler)
return () => {
api.off('login', loginHandler)