Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
haven
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
haven
Merge requests
!27
remove comments
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
remove comments
fix/remove-comments
into
dev
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
MostafaHasan
requested to merge
fix/remove-comments
into
dev
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
f868f9cb
1 commit,
2 years ago
3 files
+
5
−
21
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
components/common/LeftSideBar/LeftSideBar.tsx
+
4
−
15
Options
@@ -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