|
|
@@ -88,7 +88,13 @@ enquireScreen(b => {
|
|
|
isMobile = b;
|
|
|
});
|
|
|
|
|
|
-class BasicLayout extends React.PureComponent {
|
|
|
+@connect(({ user, global = {}, loading }) => ({
|
|
|
+ currentUser: user.currentUser,
|
|
|
+ collapsed: global.collapsed,
|
|
|
+ fetchingNotices: loading.effects['global/fetchNotices'],
|
|
|
+ notices: global.notices,
|
|
|
+}))
|
|
|
+export default class BasicLayout extends React.PureComponent {
|
|
|
static childContextTypes = {
|
|
|
location: PropTypes.object,
|
|
|
breadcrumbNameMap: PropTypes.object,
|
|
|
@@ -301,10 +307,3 @@ class BasicLayout extends React.PureComponent {
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-export default connect(({ user, global = {}, loading }) => ({
|
|
|
- currentUser: user.currentUser,
|
|
|
- collapsed: global.collapsed,
|
|
|
- fetchingNotices: loading.effects['global/fetchNotices'],
|
|
|
- notices: global.notices,
|
|
|
-}))(BasicLayout);
|