🐛 Color theme not working when opening customize page from board page
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user