diff --git a/packages/app/components/childrenLoader.component.js b/packages/app/components/childrenLoader.component.js
index 65b710092..962d47f54 100644
--- a/packages/app/components/childrenLoader.component.js
+++ b/packages/app/components/childrenLoader.component.js
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react'
import moment from 'moment'
import { useAsyncStorage } from 'use-async-storage'
import { api, fillChild } from '../lib/backend'
-import { ChildrenView } from './children.component'
+import { ChildrenView } from './childrenView.component'
export const ChildrenLoader = ({ navigation }) => {
const [cache, setCache] = useAsyncStorage('@children', [])
diff --git a/packages/app/components/children.component.js b/packages/app/components/childrenView.component.js
similarity index 97%
rename from packages/app/components/children.component.js
rename to packages/app/components/childrenView.component.js
index 2ce35ffa4..e27d776a7 100644
--- a/packages/app/components/children.component.js
+++ b/packages/app/components/childrenView.component.js
@@ -20,7 +20,7 @@ const PeopleIcon = (style) => (
)
-export const ChildrenView = ({ navigation, childList, eva }) => {
+export const ChildrenView = ({ navigation, childList }) => {
const abbrevations = {
G: 'Gymnasiet', // ? i'm guessing here
GR: 'Grundskolan',
@@ -106,7 +106,7 @@ export const ChildrenView = ({ navigation, childList, eva }) => {
}
return (
-
+
diff --git a/packages/app/components/login.component.js b/packages/app/components/login.component.js
index f85eac199..61195b5df 100644
--- a/packages/app/components/login.component.js
+++ b/packages/app/components/login.component.js
@@ -4,10 +4,8 @@ import { Platform, SafeAreaView, StyleSheet, Image, Linking, KeyboardAvoidingVie
import { Button, Icon, Modal, Card, Text, ImageBackground, Divider, Layout, TopNavigation, Input } from '@ui-kitten/components'
import Personnummer from 'personnummer'
import { useAsyncStorage } from 'use-async-storage'
-import { ScrollView } from 'react-native-gesture-handler'
import { api } from '../lib/backend'
-const baseUrl = 'https://api.skolplattformen.org'
const funArguments = ['öppna', 'roliga', 'fungerande', 'billiga', 'snabba', 'fria', 'efterlängtade', 'coolare', 'första', 'upplysta', 'hemmagjorda', 'bättre', 'rebelliska', 'enkla', 'operfekta', 'fantastiska', 'agila'] // TODO: add moare
export const Login = ({ navigation, route }) => {
@@ -19,7 +17,7 @@ export const Login = ({ navigation, route }) => {
const [hasBankId, setHasBankId] = React.useState(false)
const [socialSecurityNumber, setSocialSecurityNumber] = useAsyncStorage('@socialSecurityNumber')
const [cookie, setCookie] = useAsyncStorage('@cookie')
- const [children, setChildren] = useAsyncStorage('@children', [])
+ const [_, setChildren] = useAsyncStorage('@children', [])
useEffect(() => {
setValid(Personnummer.valid(socialSecurityNumber))
diff --git a/packages/app/components/navigation.component.js b/packages/app/components/navigation.component.js
index 0fefe5731..b03d94ed3 100644
--- a/packages/app/components/navigation.component.js
+++ b/packages/app/components/navigation.component.js
@@ -1,9 +1,9 @@
import React from 'react'
-import { StatusBar} from 'react-native'
+import { StatusBar } from 'react-native'
import { NavigationContainer } from '@react-navigation/native'
import { createStackNavigator } from '@react-navigation/stack'
import { Login } from './login.component'
-import { Children } from './children.component'
+import { ChildrenLoader } from './childrenLoader.component'
import { Child } from './child.component'
import { NewsItem } from './newsItem.component'
@@ -12,16 +12,17 @@ const { Navigator, Screen } = createStackNavigator()
const HomeNavigator = () => (
-
+
)
export const AppNavigator = () => {
- return
-
-
-
-
+ return (
+
+
+
+
+ )
}