refactor(react-doctor): raise score from 79 to 90

This commit is contained in:
plebeius
2026-02-24 15:15:44 +08:00
parent 5bd1dc0e71
commit e51f5b968c
36 changed files with 2372 additions and 1030 deletions
+1 -10
View File
@@ -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();