feat: only admin can have edit channel entrance
This commit is contained in:
@@ -188,10 +188,12 @@ function ChannelChat({ cid = 0, dropFiles = [] }: Props) {
|
|||||||
<div className="info">
|
<div className="info">
|
||||||
<h2 className="title">Welcome to #{name} !</h2>
|
<h2 className="title">Welcome to #{name} !</h2>
|
||||||
<p className="desc">This is the start of the #{name} channel. </p>
|
<p className="desc">This is the start of the #{name} channel. </p>
|
||||||
<NavLink to={`/setting/channel/${cid}?f=${pathname}`} className="edit">
|
{loginUser?.is_admin && (
|
||||||
<EditIcon className="icon" />
|
<NavLink to={`/setting/channel/${cid}?f=${pathname}`} className="edit">
|
||||||
Edit Channel
|
<EditIcon className="icon" />
|
||||||
</NavLink>
|
Edit Channel
|
||||||
|
</NavLink>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{/* <div className="feed"> */}
|
{/* <div className="feed"> */}
|
||||||
|
|||||||
Reference in New Issue
Block a user