🐛 Color theme not working when opening customize page from board page

This commit is contained in:
Meier Lukas
2023-08-06 17:06:00 +02:00
parent f1e8beb659
commit 6efa12b5f0
2 changed files with 12 additions and 14 deletions

View File

@@ -66,6 +66,18 @@ function App(
setPrimaryShade,
};
useEffect(() => {
console.log('running page props stuff');
setPrimaryColor(props.pageProps.primaryColor ?? 'red');
setSecondaryColor(props.pageProps.secondaryColor ?? 'orange');
setPrimaryShade(props.pageProps.primaryShade ?? 6);
return () => {
setPrimaryColor('red');
setSecondaryColor('orange');
setPrimaryShade(6);
};
}, [props.pageProps]);
const { setInitialPackageAttributes } = usePackageAttributesStore();
useEffect(() => {