From 8b7654f5eab2dccf2c1af20fd9adfd1adbb8f6c9 Mon Sep 17 00:00:00 2001 From: "peng.peng" Date: Sun, 25 Jun 2023 14:37:57 +0800 Subject: [PATCH] =?UTF-8?q?=EF=BC=88*=EF=BC=89=E5=A4=A7=E5=B1=8F=E9=A1=B5?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sections/homePage/containers/homePage.js | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/web/client/src/sections/homePage/containers/homePage.js b/web/client/src/sections/homePage/containers/homePage.js index ebc7883..701b574 100644 --- a/web/client/src/sections/homePage/containers/homePage.js +++ b/web/client/src/sections/homePage/containers/homePage.js @@ -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
- + 1
} -export default homePage \ No newline at end of file +function mapStateToProps(state) { + const { + auth, global + } = state; + return { + clientHeight: global.clientHeight, + actions: global.actions, + + }; +} + +export default connect(mapStateToProps)(homePage); + +