diff --git a/src/common/component/Server.js b/src/common/component/Server.js index d8fd4935..1b53f473 100644 --- a/src/common/component/Server.js +++ b/src/common/component/Server.js @@ -9,6 +9,7 @@ import Tooltip from "./Tooltip"; import ChannelIcon from "./ChannelIcon"; import ChannelModal from "./ChannelModal"; import ContactsModal from "./ContactsModal"; +import { NavLink, useLocation } from "react-router-dom"; const StyledWrapper = styled.div` position: relative; @@ -79,6 +80,7 @@ const StyledWrapper = styled.div` } `; export default function Server() { + const { pathname } = useLocation(); const { currentUser, server, userCount } = useSelector((store) => { return { userCount: store.contacts.ids.length, @@ -115,17 +117,19 @@ export default function Server() { {contactsModalVisible && ( )} -
-
- + +
+
+ +
+
+

+ {name} +

+ {userCount} members +
-
-

- {name} -

- {userCount} members -
-
+ store.contacts.byId[uid]); if (!user) return null; return ( -
- -
+ +
+ +
+
); }