1
0
Fork 0
mirror of https://github.com/voltbonn/profile-picture-generator.git synced 2024-12-21 23:35:05 +00:00

renamed AppWrapper to AppLanguageWrapper

This commit is contained in:
thomasrosen 2021-04-29 09:51:24 +02:00
parent a91df1b61b
commit 4f7a919181

View file

@ -408,7 +408,7 @@ function App({ getString, locales, currentLocale, onLanguageChange }) {
const AppLocalized = withLocalization(App)
function AppWrapper() {
function AppLanguageWrapper() {
const [userLocales, setUserLocales] = useState(navigator.languages)
const [currentLocale, setCurrentLocale] = useState(null)
@ -437,5 +437,5 @@ function AppWrapper() {
<AppLocalized locales={locales} currentLocale={currentLocale} onLanguageChange={handleLanguageChange} />
</AppLocalizationProvider>
}
export default withLocalization(AppWrapper)
export default withLocalization(AppLanguageWrapper)