mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
refactor(react-doctor): raise score from 79 to 90
This commit is contained in:
+1
-10
@@ -120,16 +120,7 @@ const BoardLayout = () => {
|
||||
};
|
||||
|
||||
const GlobalLayout = () => {
|
||||
const [currentTheme] = useTheme();
|
||||
|
||||
useEffect(() => {
|
||||
if (currentTheme) {
|
||||
document.body.classList.add(currentTheme);
|
||||
return () => {
|
||||
document.body.classList.remove(currentTheme);
|
||||
};
|
||||
}
|
||||
}, [currentTheme]);
|
||||
useTheme();
|
||||
|
||||
const { activeCid, parentNumber, threadNumber, threadCid, subplebbitAddress, closeModal, showReplyModal, scrollY } = useReplyModalStore();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user