mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
update board settings ui
This commit is contained in:
@@ -304,7 +304,7 @@ const BoardSettings = ({ subplebbit }) => {
|
||||
</div>
|
||||
</div>
|
||||
</StyledModal>
|
||||
[
|
||||
[
|
||||
<span id="subscribe" style={{ cursor: 'pointer' }}>
|
||||
<span
|
||||
onClick={() => {
|
||||
@@ -315,10 +315,10 @@ const BoardSettings = ({ subplebbit }) => {
|
||||
);
|
||||
}}
|
||||
>
|
||||
Board Settings
|
||||
Settings
|
||||
</span>
|
||||
</span>
|
||||
]
|
||||
]
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -903,13 +903,13 @@ const Board = () => {
|
||||
[
|
||||
<Link to={`/p/${selectedAddress}/catalog`} onClick={()=> {window.scrollTo(0, 0)}}>Catalog</Link>
|
||||
]
|
||||
{subplebbit?.roles[account?.author?.address]?.role === "admin" ? (
|
||||
<BoardSettings subplebbit={subplebbit} />
|
||||
) : null}
|
||||
</div>
|
||||
{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()}>
|
||||
|
||||
@@ -1260,13 +1260,13 @@ const Catalog = () => {
|
||||
[
|
||||
<Link to={`/p/${selectedAddress}`} onClick={()=> {window.scrollTo(0, 0)}}>Return</Link>
|
||||
]
|
||||
{subplebbit?.roles[account?.author?.address]?.role === "admin" ? (
|
||||
<BoardSettings subplebbit={subplebbit} />
|
||||
) : null}
|
||||
</div>
|
||||
{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