mirror of
https://github.com/shadoll/sLogos.git
synced 2026-08-28 11:33:29 +00:00
feat: update setTheme prop to a constant function in multiple components for consistency
This commit is contained in:
@@ -116,6 +116,10 @@
|
||||
}
|
||||
|
||||
function setCompactMode(value) {
|
||||
// Update local state first
|
||||
compactMode = value;
|
||||
console.log("Home: Setting compact mode to:", value);
|
||||
|
||||
if (typeof window !== 'undefined' && window.appData && window.appData.setCompactMode) {
|
||||
window.appData.setCompactMode(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user