mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(themes): all and subscriptions multiboards should use yotsuba
This commit is contained in:
@@ -62,7 +62,7 @@ const useTheme = (): [string, (theme: string) => void] => {
|
|||||||
|
|
||||||
let storedTheme = null;
|
let storedTheme = null;
|
||||||
if (isInAllView || isInSubscriptionsView || isInModView) {
|
if (isInAllView || isInSubscriptionsView || isInModView) {
|
||||||
storedTheme = themes.sfw;
|
storedTheme = themes.nsfw;
|
||||||
} else if (subplebbitAddress) {
|
} else if (subplebbitAddress) {
|
||||||
const subplebbit = subplebbits.find((s) => s.address === subplebbitAddress);
|
const subplebbit = subplebbits.find((s) => s.address === subplebbitAddress);
|
||||||
if (subplebbit?.nsfw) {
|
if (subplebbit?.nsfw) {
|
||||||
@@ -83,7 +83,7 @@ const useTheme = (): [string, (theme: string) => void] => {
|
|||||||
const setSubplebbitTheme = useCallback(
|
const setSubplebbitTheme = useCallback(
|
||||||
async (newTheme: string) => {
|
async (newTheme: string) => {
|
||||||
if (isInAllView || isInSubscriptionsView || isInModView) {
|
if (isInAllView || isInSubscriptionsView || isInModView) {
|
||||||
await setThemeStore('sfw', newTheme);
|
await setThemeStore('nsfw', newTheme);
|
||||||
} else if (subplebbitAddress) {
|
} else if (subplebbitAddress) {
|
||||||
const subplebbit = subplebbits.find((s) => s.address === subplebbitAddress);
|
const subplebbit = subplebbits.find((s) => s.address === subplebbitAddress);
|
||||||
if (subplebbit?.nsfw) {
|
if (subplebbit?.nsfw) {
|
||||||
|
|||||||
@@ -4,3 +4,4 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user