feat: updated

This commit is contained in:
zerosoul
2022-02-06 22:09:04 +08:00
parent ceb02d834f
commit e8b6c2b0f1
9 changed files with 443 additions and 156 deletions
+7 -3
View File
@@ -16,8 +16,12 @@ import NotificationHub from "../../common/component/NotificationHub";
export default function HomePage() {
const dispatch = useDispatch();
const { menuExpand, token } = useSelector((store) => {
return { token: store.authData.token, menuExpand: store.ui.menuExpand };
const { menuExpand, token, usersVersion } = useSelector((store) => {
return {
token: store.authData.token,
usersVersion: store.authData.usersVersion,
menuExpand: store.ui.menuExpand,
};
});
const { data, error, success } = usePreload();
const toggleExpand = () => {
@@ -26,7 +30,7 @@ export default function HomePage() {
console.log({ data, error, success });
return (
<>
<NotificationHub token={token} />
<NotificationHub token={token} usersVersion={usersVersion} />
<StyledWrapper>
<div className={`col left ${menuExpand ? "expand" : ""}`}>
<ServerDropList