chore(lint): fix errors

This commit is contained in:
Rickard Natt och Dag 2021-08-16 19:47:47 +02:00
parent d4060dbe68
commit 4694f4839b
No known key found for this signature in database
GPG Key ID: 97AA4A72D75845D5
5 changed files with 6 additions and 8 deletions

View File

@ -22,7 +22,6 @@ import { studentName } from '../utils/peopleHelpers'
import { translate } from '../utils/translation'
import { RootStackParamList } from './navigation.component'
import { StudentAvatar } from './studentAvatar.component'
import { DaySummary } from './daySummary.component'
interface ChildListItemProps {
child: Child
@ -95,7 +94,6 @@ export const ChildListItem = ({ child, color }: ChildListItemProps) => {
const className = getClassName()
const styles = useStyleSheet(themeStyles)
const date = moment()
return (
<TouchableOpacity
@ -111,7 +109,6 @@ export const ChildListItem = ({ child, color }: ChildListItemProps) => {
</View>
</View>
</View>
{/*<DaySummary child={child} date={date} />*/}
{scheduleAndCalendarThisWeek.slice(0, 3).map((calendarItem, i) => (
<Text category="p1" key={i}>
{`${calendarItem.title} (${displayDate(calendarItem.startDate)})`}

View File

@ -80,7 +80,9 @@ export const Children = () => {
useEffect(() => {
navigation.setOptions({
headerLeft: () => {
return <TopNavigationAction icon={CloseOutlineIcon} onPress={settings} />
return (
<TopNavigationAction icon={CloseOutlineIcon} onPress={settings} />
)
},
})
}, [navigation, settings])

View File

@ -6,5 +6,4 @@ import { AppRegistry } from 'react-native'
import App from './App'
import { name as appName } from './app.json'
AppRegistry.registerComponent(appName, () => App)

View File

@ -1,3 +1,3 @@
module.exports = {
assets: ['./assets/fonts']
}
assets: ['./assets/fonts'],
}

View File

@ -30,7 +30,7 @@ export const fontWeight: Record<FontWeight, TextStyle> = {
},
bold: {
...systemWeights.bold,
}
},
}
export const header: TextStyle = {