peng.peng
2 years ago
1 changed files with 17 additions and 3 deletions
@ -1,11 +1,25 @@ |
|||||
import React, { useEffect, useState } from 'react' |
import React, { useEffect, useState } from 'react' |
||||
|
import { connect } from 'react-redux'; |
||||
import './style.less' |
import './style.less' |
||||
|
|
||||
function homePage(props) { |
function homePage(props) { |
||||
|
const { clientHeight } = props; |
||||
return <div style={{ width: '100%', height: clientHeight, overflow: 'hidden' }}> |
return <div style={{ width: '100%', height: clientHeight, overflow: 'hidden' }}> |
||||
|
1 |
||||
</div> |
</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