chore: fix linting problems
This commit is contained in:
parent
599809ff6a
commit
d58d1a9b70
|
@ -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
|
||||
|
|
|
@ -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])
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import { Icon, IconProps } from '@ui-kitten/components'
|
||||
import React from 'react'
|
||||
|
||||
const uiIcon = (name: string) => (props: IconProps) => (
|
||||
const uiIcon = (name: string) => (props: IconProps) =>
|
||||
<Icon {...props} name={name} />
|
||||
)
|
||||
|
||||
export const AlertIcon = uiIcon('alert-circle-outline')
|
||||
export const BackIcon = uiIcon('arrow-back')
|
||||
|
|
|
@ -31,9 +31,8 @@ export const SetLanguage = () => {
|
|||
|
||||
const currentLanguage = LanguageService.getLanguageCode()
|
||||
|
||||
const [selectedLanguage, setSelectedLanguage] = useState<string>(
|
||||
currentLanguage
|
||||
)
|
||||
const [selectedLanguage, setSelectedLanguage] =
|
||||
useState<string>(currentLanguage)
|
||||
const { setLanguageCode } = useLanguage()
|
||||
|
||||
const shouldRestart = () => {
|
||||
|
|
|
@ -6,5 +6,4 @@ import { AppRegistry } from 'react-native'
|
|||
import App from './App'
|
||||
import { name as appName } from './app.json'
|
||||
|
||||
|
||||
AppRegistry.registerComponent(appName, () => App)
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
"test:watch": "jest --watch",
|
||||
"typecheck": "tsc --watch",
|
||||
"i18n": "sync-i18n --files '**/translations/*.json' --primary en --languages ar de pl so sv --space 2",
|
||||
"check-i18n": "npm run i18n -- --check",
|
||||
"postinstall": "patch-package"
|
||||
"check-i18n": "npm run i18n -- --check"
|
||||
},
|
||||
"dependencies": {
|
||||
"@eva-design/eva": "2.0.0",
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module.exports = {
|
||||
assets: ['./assets/fonts']
|
||||
}
|
||||
assets: ['./assets/fonts'],
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ export const fontWeight: Record<FontWeight, TextStyle> = {
|
|||
},
|
||||
bold: {
|
||||
...systemWeights.bold,
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
export const header: TextStyle = {
|
||||
|
|
Loading…
Reference in New Issue