mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat(styles): remember style selection per sfw or nsfw category, instead of single board
This commit is contained in:
@@ -172,6 +172,24 @@ export const TimeFilter = ({ isInAllView, isInCatalogView, isInSubscriptionsView
|
||||
);
|
||||
};
|
||||
|
||||
const AdButton = () => {
|
||||
return (
|
||||
<div className={styles.adButton}>
|
||||
[
|
||||
<Link
|
||||
to='/boards'
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
alert('work in progress');
|
||||
}}
|
||||
>
|
||||
Plebbit Leaderboard
|
||||
</Link>
|
||||
]
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export const MobileBoardButtons = () => {
|
||||
const params = useParams();
|
||||
const location = useLocation();
|
||||
@@ -186,19 +204,7 @@ export const MobileBoardButtons = () => {
|
||||
|
||||
return (
|
||||
<div className={`${styles.mobileBoardButtons} ${!isInCatalogView ? styles.addMargin : ''}`}>
|
||||
<div className={styles.adButton}>
|
||||
[
|
||||
<Link
|
||||
to='/boards'
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
alert('work in progress');
|
||||
}}
|
||||
>
|
||||
Vote for Boards
|
||||
</Link>
|
||||
]
|
||||
</div>
|
||||
<AdButton />
|
||||
<hr />
|
||||
{isInPostView || isInPendingPostPage ? (
|
||||
<>
|
||||
@@ -248,19 +254,7 @@ export const DesktopBoardButtons = () => {
|
||||
return (
|
||||
<>
|
||||
<hr />
|
||||
<div className={styles.adButton}>
|
||||
[
|
||||
<Link
|
||||
to='/boards'
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
alert('work in progress');
|
||||
}}
|
||||
>
|
||||
Vote for Boards
|
||||
</Link>
|
||||
]
|
||||
</div>
|
||||
<AdButton />
|
||||
<hr />
|
||||
<div className={styles.desktopBoardButtons}>
|
||||
{isInPostView || isInPendingPostPage ? (
|
||||
|
||||
Reference in New Issue
Block a user