Standardization

This commit is contained in:
Sean Edmunds
2025-11-11 16:04:34 -06:00
parent 0397c0e1b0
commit 8794422a47
24 changed files with 365 additions and 209 deletions

View File

@@ -58,11 +58,11 @@ function ThemingCard() {
});
useEffect(() => {
if (theme.name !== current) {
start();
} else {
if (theme.name === current) {
setCurrent(theme.name);
stop();
} else {
start();
}
}, [theme]);
@@ -215,9 +215,7 @@ function ThemingCard() {
}
onChange={(_value, option: ComboboxItem) => {
setCurrentThemePlaylist(option.value);
if (option.value !== 'Time of Day') {
setThemeName('random');
} else {
if (option.value === 'Time of Day') {
const themeList = JSON.parse(
themePlaylistData.find((t: ThemePlaylist) => t.name === 'Time of Day')
.themeList,
@@ -228,6 +226,8 @@ function ThemingCard() {
t.id === Number(themeList[Math.floor(new Date().getHours() / 6)]),
).name,
);
} else {
setThemeName('random');
}
}}
/>