[Redolved] Avoid complain about styles. (#51)

This commit is contained in:
Qolzam
2018-04-07 12:36:43 +07:00
parent cb0c42dddd
commit e388680df7
2 changed files with 8 additions and 11 deletions

View File

@@ -55,22 +55,17 @@
"react-infinite-scroller": "^1.1.2", "react-infinite-scroller": "^1.1.2",
"react-linkify": "^0.2.1", "react-linkify": "^0.2.1",
"react-loadable": "^5.3.1", "react-loadable": "^5.3.1",
"react-localize-redux": "^2.16.0", "react-localize-redux": "^2.17.1",
"react-parallax": "^1.6.1", "react-parallax": "^1.6.1",
"react-redux": "^5.0.6", "react-redux": "^5.0.6",
"react-router": "^4.1.1 ", "react-router": "^4.1.1 ",
"react-router-dom": "^4.1.1", "react-router-dom": "^4.1.1",
"react-router-redux": "^5.0.0-alpha.6", "react-router-redux": "^5.0.0-alpha.6",
"react-scripts-ts": "2.13.0",
"react-share": "^2.0.0", "react-share": "^2.0.0",
"react-string-replace": "^0.4.0", "react-string-replace": "^0.4.0",
"react-tap-event-plugin": "^3.0.2", "react-tap-event-plugin": "^3.0.2",
"redux": "^3.7.2", "redux": "^3.7.2",
"redux-actions": "^2.0.3", "redux-actions": "^2.0.3",
"redux-devtools": "^3.4.1",
"redux-devtools-dock-monitor": "^1.1.3",
"redux-devtools-extension": "^2.13.2",
"redux-devtools-log-monitor": "^1.4.0",
"redux-immutable": "^4.0.0", "redux-immutable": "^4.0.0",
"redux-saga": "^0.16.0", "redux-saga": "^0.16.0",
"redux-thunk": "^2.2.0", "redux-thunk": "^2.2.0",
@@ -95,12 +90,17 @@
"@types/react-tap-event-plugin": "0.0.30", "@types/react-tap-event-plugin": "0.0.30",
"@types/redux-logger": "^3.0.4", "@types/redux-logger": "^3.0.4",
"@types/uuid": "^3.4.3", "@types/uuid": "^3.4.3",
"react-scripts-ts": "^2.14.0",
"redux-devtools": "^3.4.1",
"redux-devtools-dock-monitor": "^1.1.3",
"redux-devtools-extension": "^2.13.2",
"redux-devtools-log-monitor": "^1.4.0",
"redux-logger": "^3.0.6", "redux-logger": "^3.0.6",
"redux-mock-store": "^1.2.3", "redux-mock-store": "^1.2.3",
"ts-node": "^5.0.1", "ts-node": "^5.0.1",
"tslint": "^5.9.1", "tslint": "^5.9.1",
"tslint-config-standard": "^6.0.1", "tslint-config-standard": "^6.0.1",
"typescript": "^2.7.2" "typescript": "^2.8.1"
}, },
"engines": { "engines": {
"node": "8.9.4", "node": "8.9.4",

View File

@@ -248,9 +248,6 @@ const mapDispatchToProps = (dispatch: any, ownProps: ILoginComponentProps) => {
/** /**
* Map state to props * Map state to props
* @param {object} state is the obeject from redux store
* @param {object} ownProps is the props belong to component
* @return {object} props of component
*/ */
const mapStateToProps = (state: any, ownProps: ILoginComponentProps) => { const mapStateToProps = (state: any, ownProps: ILoginComponentProps) => {
return { return {
@@ -258,4 +255,4 @@ const mapStateToProps = (state: any, ownProps: ILoginComponentProps) => {
} }
// - Connect component to redux store // - Connect component to redux store
export default withRouter<any>(connect(mapStateToProps, mapDispatchToProps)(withStyles(styles)(localize(LoginComponent, 'locale', CommonAPI.getStateSlice) as any) as any)) as typeof LoginComponent export default withRouter<any>(connect(mapStateToProps, mapDispatchToProps)(withStyles(styles as any)(localize(LoginComponent, 'locale', CommonAPI.getStateSlice) as any) as any)) as typeof LoginComponent