Commit 8566117d authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

user center support GridContent

parent f4431e6f
...@@ -3,6 +3,7 @@ import { connect } from 'dva'; ...@@ -3,6 +3,7 @@ import { connect } from 'dva';
import { Link, routerRedux, Route, Switch, Redirect } from 'dva/router'; import { Link, routerRedux, Route, Switch, Redirect } from 'dva/router';
import { Card, Row, Col, Icon, Avatar, Tag, Divider, Spin, Input } from 'antd'; import { Card, Row, Col, Icon, Avatar, Tag, Divider, Spin, Input } from 'antd';
import { getRoutes } from '../../../utils/utils'; import { getRoutes } from '../../../utils/utils';
import GridContent from '../../../layouts/GridContent';
import styles from './Center.less'; import styles from './Center.less';
@connect(({ list, loading, user, project }) => ({ @connect(({ list, loading, user, project }) => ({
...@@ -122,7 +123,7 @@ export default class Center extends PureComponent { ...@@ -122,7 +123,7 @@ export default class Center extends PureComponent {
]; ];
return ( return (
<div className={styles.userCenter}> <GridContent className={styles.userCenter}>
<Row gutter={24}> <Row gutter={24}>
<Col lg={7} md={24}> <Col lg={7} md={24}>
<Card bordered={false} style={{ marginBottom: 24 }} loading={currentUserLoading}> <Card bordered={false} style={{ marginBottom: 24 }} loading={currentUserLoading}>
...@@ -221,7 +222,7 @@ export default class Center extends PureComponent { ...@@ -221,7 +222,7 @@ export default class Center extends PureComponent {
</Card> </Card>
</Col> </Col>
</Row> </Row>
</div> </GridContent>
); );
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment