fix: 🐛 Settings menu was not updated on language change (#286)

* Fixed bug with translation not updating
* fixed linting issues
This commit is contained in:
Axel 2021-04-18 20:41:55 +02:00 committed by GitHub
parent bf92550b86
commit 6418d6ee42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -27,12 +27,13 @@ import { ChildListItem } from './childListItem.component'
import { SettingsIcon } from './icon.component'
const colors = ['primary', 'success', 'info', 'warning', 'danger']
const settingsOptions = [
translate('general.logout'),
translate('general.abort'),
]
export const Children = () => {
const settingsOptions = [
translate('general.logout'),
translate('general.abort'),
]
const { api } = useApi()
const { data: childList, status, reload } = useChildList()
const insets = useSafeAreaInsets()