fix: 🐛 Add better logo image for Freja eID
This commit is contained in:
parent
46485dd3eb
commit
051df2da39
Binary file not shown.
After Width: | Height: | Size: 9.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 365 B |
|
@ -1,3 +1,4 @@
|
||||||
|
/* eslint-disable no-console */
|
||||||
import { useApi } from '@skolplattformen/hooks'
|
import { useApi } from '@skolplattformen/hooks'
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
|
@ -47,7 +48,7 @@ const BankId = () => (
|
||||||
const FrejaEid = () => (
|
const FrejaEid = () => (
|
||||||
<Image
|
<Image
|
||||||
style={themedStyles.icon}
|
style={themedStyles.icon}
|
||||||
source={require('../assets/freja_eid_low.png')}
|
source={require('../assets/freja_eid_logo.png')}
|
||||||
accessibilityIgnoresInvertColors
|
accessibilityIgnoresInvertColors
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
@ -91,13 +92,14 @@ export const Login = () => {
|
||||||
setLoginMethodId('thisdevice')
|
setLoginMethodId('thisdevice')
|
||||||
}
|
}
|
||||||
|
|
||||||
const loginHandler = async () => {
|
|
||||||
const user = await api.getUser()
|
|
||||||
await AppStorage.clearPersonalData(user)
|
|
||||||
showModal(false)
|
|
||||||
}
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
const loginHandler = async () => {
|
||||||
|
console.debug('Runnning loginHandler')
|
||||||
|
const user = await api.getUser()
|
||||||
|
await AppStorage.clearPersonalData(user)
|
||||||
|
showModal(false)
|
||||||
|
}
|
||||||
|
|
||||||
api.on('login', loginHandler)
|
api.on('login', loginHandler)
|
||||||
return () => {
|
return () => {
|
||||||
api.off('login', loginHandler)
|
api.off('login', loginHandler)
|
||||||
|
|
Loading…
Reference in New Issue