diff --git a/front/Navigation.tsx b/front/Navigation.tsx index 71efac4..91d7be7 100644 --- a/front/Navigation.tsx +++ b/front/Navigation.tsx @@ -7,7 +7,7 @@ import SongLobbyView from './views/SongLobbyView'; import AuthenticationView from './views/AuthenticationView'; import HomeView from './views/HomeView'; import SearchView from './views/SearchView'; -import SetttingsNavigator from './views/SettingsView'; +import SetttingsNavigator from './views/settings/SettingsView'; import { useQuery } from 'react-query'; import API from './API'; import PlayView from './views/PlayView'; diff --git a/front/i18n/Translations.ts b/front/i18n/Translations.ts index 8eb261f..1bd5939 100644 --- a/front/i18n/Translations.ts +++ b/front/i18n/Translations.ts @@ -203,7 +203,7 @@ export const fr: typeof en = { goodNotesInARow: 'Bonnes notes à la suite', songsToGetBetter: 'Recommendations', goodNotes: 'bonnes notes', - changepasswdBtn: 'Changer le mot de pass', + changepasswdBtn: 'Changer le mot de passe', changeemailBtn: 'Changer l\'email', googleacctBtn: 'Compte Google', forgottenPassword: 'Mot de passe oublié', diff --git a/front/views/settings/PreferencesView.tsx b/front/views/settings/PreferencesView.tsx index ca3e13b..6bcd8dc 100644 --- a/front/views/settings/PreferencesView.tsx +++ b/front/views/settings/PreferencesView.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { View } from 'react-native'; +import { useDispatch, useSelector } from 'react-redux'; import { Center, Button, Text, Switch, Slider, Select, Heading } from "native-base"; import { useLanguage } from "../../state/LanguageSlice"; import i18n, { AvailableLanguages, DefaultLanguage, translate } from "../../i18n/i18n";