mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
add board settings UI and base logic
This commit is contained in:
@@ -17,6 +17,7 @@ import EditLabel from '../EditLabel';
|
||||
import ImageBanner from '../ImageBanner';
|
||||
import AdminListModal from '../modals/AdminListModal';
|
||||
import ModerationModal from '../modals/ModerationModal';
|
||||
import BoardSettings from '../BoardSettings';
|
||||
import OfflineIndicator from '../OfflineIndicator';
|
||||
import PendingLabel from '../PendingLabel';
|
||||
import Post from '../Post';
|
||||
@@ -906,6 +907,9 @@ const Board = () => {
|
||||
{subplebbit?.state === "succeeded" ? (
|
||||
<>
|
||||
<span className="subscribe-button-desktop">
|
||||
{subplebbit?.roles[account?.author?.address]?.role === "admin" ? (
|
||||
<BoardSettings subplebbit={subplebbit} />
|
||||
) : null}
|
||||
[
|
||||
<span id="subscribe" style={{cursor: 'pointer'}}>
|
||||
<span onClick={() => handleSubscribe()}>
|
||||
|
||||
Reference in New Issue
Block a user