Skip to content
Snippets Groups Projects

remove comments

Merged MostafaHasan requested to merge fix/remove-comments into dev
3 files
+ 5
21
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -8,11 +8,7 @@ import {
} from "@components/common";
import { Elixxir, SpeakEasy, Settings, Plus, Join } from "@components/icons";
import { useUI } from "contexts/ui-context";
import {
useNetworkClient,
IChannel,
NetworkStatus
} from "contexts/network-client-context";
import { useNetworkClient } from "contexts/network-client-context";
const LeftSideBar: FC<{
cssClasses?: string;
@@ -23,7 +19,6 @@ const LeftSideBar: FC<{
currentChannel,
channels,
setCurrentChannel,
networkStatus,
getIdentity,
getVersion,
getClientVersion
@@ -46,31 +41,25 @@ const LeftSideBar: FC<{
<div className="flex items-center">
<Plus
className={cn("mr-1", s.plus, {
// [s.plus__disabled]: networkStatus !== NetworkStatus.CONNECTED
})}
className={cn("mr-1", s.plus, {})}
onClick={(e: any) => {
if (e && e.stopPropagation) {
e.stopPropagation();
}
// if (networkStatus === NetworkStatus.CONNECTED) {
setModalView("CREATE_CHANNEL");
openModal();
// }
}}
/>
<Join
className={cn(s.join, {
// [s.join__disabled]: networkStatus !== NetworkStatus.CONNECTED
})}
className={cn(s.join, {})}
onClick={(e: any) => {
if (e && e.stopPropagation) {
e.stopPropagation();
}
// if (networkStatus === NetworkStatus.CONNECTED) {
setModalView("JOIN_CHANNEL");
openModal();
// }
}}
/>
</div>
Loading