From f81d36c639d35e67db8b2d0a65b561e4af203eb1 Mon Sep 17 00:00:00 2001 From: chencheng Date: Thu, 22 Feb 2018 16:50:14 +0800 Subject: [PATCH] 7. Handle loading state --- src/pages/users/components/Users.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/users/components/Users.js b/src/pages/users/components/Users.js index 5c57588..fa575fb 100644 --- a/src/pages/users/components/Users.js +++ b/src/pages/users/components/Users.js @@ -3,7 +3,7 @@ import { Table, Pagination, Popconfirm } from 'antd'; import styles from './Users.css'; import { PAGE_SIZE } from '../constants'; -function Users({ list: dataSource, total, page: current }) { +function Users({ list: dataSource, loading, total, page: current }) { function deleteHandler(id) { console.warn(`TODO: ${id}`); } @@ -43,6 +43,7 @@ function Users({ list: dataSource, total, page: current }) {
record.id} @@ -65,6 +66,7 @@ function mapStateToProps(state) { list, total, page, + loading: state.loading.models.users, }; }