import React, {Component} from 'react'
|
// import PropTypes from 'prop-types'
|
import { is, fromJS } from 'immutable'
|
// import { Flex, WhiteSpace, Tabs } from 'antd-mobile'
|
|
import zhCN from '@/locales/zh-CN/mob.js'
|
import enUS from '@/locales/en-US/mob.js'
|
import './index.scss'
|
|
class MobLogin extends Component {
|
// static propTpyes = {
|
// collapse: PropTypes.bool,
|
// }
|
state = {
|
dict: localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
|
}
|
|
shouldComponentUpdate (nextProps, nextState) {
|
return !is(fromJS(this.props), fromJS(nextProps)) || !is(fromJS(this.state), fromJS(nextState))
|
}
|
|
render () {
|
|
return (
|
<div className="mob-login">
|
|
</div>
|
)
|
}
|
}
|
|
export default MobLogin
|