mirror of
https://github.com/yang991178/fluent-reader.git
synced 2025-04-14 02:12:18 +02:00
14 lines
451 B
TypeScript
14 lines
451 B
TypeScript
import { connect } from "react-redux"
|
|
import { setLocaleSettings } from "../../scripts/settings"
|
|
import { initIntl } from "../../scripts/models/app"
|
|
import AppTab from "../../components/settings/app"
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
setLanguage: (option: string) => {
|
|
setLocaleSettings(option)
|
|
dispatch(initIntl())
|
|
}
|
|
})
|
|
|
|
const AppTabContainer = connect(null, mapDispatchToProps)(AppTab)
|
|
export default AppTabContainer |