refactor: remove unnecessary console logs in SideBarLeft; update comparePopUp default state to false; fix color variable in dashboard styles
This commit is contained in:
parent
60064f095a
commit
9e25fb7ace
|
@ -33,9 +33,6 @@ const SideBarLeft: React.FC = () => {
|
|||
console.log(value);
|
||||
};
|
||||
|
||||
console.log('isVersionSaved: ', isVersionSaved);
|
||||
console.log('toggleUILeft: ', toggleUILeft);
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`sidebar-left-wrapper ${toggleUILeft && (!isVersionSaved || activeModule !== "simulation") ? "open" : "closed"
|
||||
|
|
|
@ -137,6 +137,7 @@ const Simulations: React.FC = () => {
|
|||
}
|
||||
);
|
||||
}
|
||||
|
||||
}, [selectedProduct.productUuid, products]);
|
||||
|
||||
return (
|
||||
|
|
|
@ -340,4 +340,4 @@ const Panel: React.FC<PanelProps> = ({
|
|||
);
|
||||
};
|
||||
|
||||
export default Panel;
|
||||
export default Panel;
|
|
@ -626,11 +626,12 @@ interface CompareStore {
|
|||
}
|
||||
|
||||
export const useCompareStore = create<CompareStore>((set) => ({
|
||||
comparePopUp: true,
|
||||
comparePopUp: false,
|
||||
setComparePopUp: (value) => set({ comparePopUp: value }),
|
||||
toggleComparePopUp: () =>
|
||||
set((state) => ({ comparePopUp: !state.comparePopUp })),
|
||||
}));
|
||||
|
||||
// Save state store
|
||||
interface SaveVersionStore {
|
||||
isVersionSaved: boolean;
|
||||
|
|
|
@ -144,7 +144,7 @@
|
|||
|
||||
&.active {
|
||||
background: var(--background-color-button);
|
||||
color: var(--text-color);
|
||||
color: var(--text-button-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -342,4 +342,4 @@
|
|||
font-family: #{$font-roboto};
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue