Skip to content

Commit

Permalink
fix: 🐛 Add better logo image for Freja eID
Browse files Browse the repository at this point in the history
  • Loading branch information
whyer committed Apr 24, 2022
1 parent 46485dd commit 051df2d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed apps/skolplattformen-app/assets/freja_eid_low.png
Binary file not shown.
16 changes: 9 additions & 7 deletions apps/skolplattformen-app/components/login.component.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import { useApi } from '@skolplattformen/hooks'
import {
Button,
Expand Down Expand Up @@ -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
/>
)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 051df2d

Please sign in to comment.