fixed pagination, fixed cookiebar dark mode, fixed rendering issues during ssr, moved all test blog code to a test folder

This commit is contained in:
2022-09-17 23:16:13 +02:00
parent b82bef5e0f
commit 74082cd463
28 changed files with 176 additions and 237 deletions

View File

@@ -9,6 +9,9 @@ import { Themes } from "./Themes";
type Props = { showLabel: boolean };
export const ThemeSwitcher: FunctionComponent<Props> = ({ showLabel }) => {
if (typeof document === "undefined") {
return null;
}
const initTheme = document.documentElement.dataset.theme;
const [theme, setTheme] = useState(initTheme);