Merge branch 'dev' into add-umami

This commit is contained in:
Thomas Camlong
2023-10-25 12:58:44 +02:00
committed by GitHub
11 changed files with 55 additions and 142 deletions

View File

@@ -21,6 +21,7 @@ import { ConfigProvider } from '~/config/provider';
import { env } from '~/env.js';
import { ColorSchemeProvider } from '~/hooks/use-colorscheme';
import { modals } from '~/modals';
import { usePackageAttributesStore } from '~/tools/client/zustands/usePackageAttributesStore';
import { ColorTheme } from '~/tools/color';
import { getLanguageByCode } from '~/tools/language';
import {
@@ -92,6 +93,11 @@ function App(
};
}, [props.pageProps]);
const { setInitialPackageAttributes } = usePackageAttributesStore();
useEffect(() => {
setInitialPackageAttributes(props.pageProps.packageAttributes);
}, []);
return (
<>
<CommonHead />