update board settings ui

This commit is contained in:
plebeius.eth
2023-08-19 21:27:31 +02:00
parent 0a62130ece
commit 1370bf049b
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -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>
] 
]
</>
);
};
+3 -3
View File
@@ -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()}>
+3 -3
View File
@@ -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()}>