peng.peng
1 year ago
1 changed files with 17 additions and 3 deletions
@ -1,11 +1,25 @@ |
|||
import React, { useEffect, useState } from 'react' |
|||
import { connect } from 'react-redux'; |
|||
import './style.less' |
|||
|
|||
function homePage(props) { |
|||
|
|||
const { clientHeight } = props; |
|||
return <div style={{ width: '100%', height: clientHeight, overflow: 'hidden' }}> |
|||
|
|||
1 |
|||
</div> |
|||
} |
|||
|
|||
export default homePage |
|||
function mapStateToProps(state) { |
|||
const { |
|||
auth, global |
|||
} = state; |
|||
return { |
|||
clientHeight: global.clientHeight, |
|||
actions: global.actions, |
|||
|
|||
}; |
|||
} |
|||
|
|||
export default connect(mapStateToProps)(homePage); |
|||
|
|||
|
|||
|
Loading…
Reference in new issue