mirror of
https://github.com/voltbonn/profile-picture-generator.git
synced 2024-12-22 15:55:08 +00:00
renamed AppWrapper to AppLanguageWrapper
This commit is contained in:
parent
a91df1b61b
commit
4f7a919181
1 changed files with 2 additions and 2 deletions
|
@ -408,7 +408,7 @@ function App({ getString, locales, currentLocale, onLanguageChange }) {
|
||||||
const AppLocalized = withLocalization(App)
|
const AppLocalized = withLocalization(App)
|
||||||
|
|
||||||
|
|
||||||
function AppWrapper() {
|
function AppLanguageWrapper() {
|
||||||
const [userLocales, setUserLocales] = useState(navigator.languages)
|
const [userLocales, setUserLocales] = useState(navigator.languages)
|
||||||
const [currentLocale, setCurrentLocale] = useState(null)
|
const [currentLocale, setCurrentLocale] = useState(null)
|
||||||
|
|
||||||
|
@ -437,5 +437,5 @@ function AppWrapper() {
|
||||||
<AppLocalized locales={locales} currentLocale={currentLocale} onLanguageChange={handleLanguageChange} />
|
<AppLocalized locales={locales} currentLocale={currentLocale} onLanguageChange={handleLanguageChange} />
|
||||||
</AppLocalizationProvider>
|
</AppLocalizationProvider>
|
||||||
}
|
}
|
||||||
export default withLocalization(AppWrapper)
|
export default withLocalization(AppLanguageWrapper)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue