diff --git a/app/src/components/layout/sidebarRight/visualization/Visualization.tsx b/app/src/components/layout/sidebarRight/visualization/Visualization.tsx
index c2ac477..c24dea2 100644
--- a/app/src/components/layout/sidebarRight/visualization/Visualization.tsx
+++ b/app/src/components/layout/sidebarRight/visualization/Visualization.tsx
@@ -13,7 +13,7 @@ const Visualization = () => {
return (
diff --git a/app/src/components/layout/sidebarRight/visualization/design/Design.tsx b/app/src/components/layout/sidebarRight/visualization/design/Design.tsx
index 234b936..f45cf35 100644
--- a/app/src/components/layout/sidebarRight/visualization/design/Design.tsx
+++ b/app/src/components/layout/sidebarRight/visualization/design/Design.tsx
@@ -53,7 +53,7 @@ const Design = () => {
// Initialize name input and extract elements when selectedChartId changes
useEffect(() => {
- setNameInput(selectedChartId?.header || selectedChartId?.title || "");
+ setNameInput(selectedChartId?.header ? selectedChartId?.title : "");
if (!chartRef.current) return;
@@ -70,7 +70,7 @@ const Design = () => {
const tagName = el.tagName.toLowerCase();
const className =
typeof el.className === "string" ? el.className : "";
- const textContent = el.textContent?.trim() || "";
+ const textContent = el.textContent?.trim() ?? "";
let selector = tagName;
@@ -196,22 +196,22 @@ const Design = () => {
return (
- {selectedChartId?.title || selectedChartId?.header || "Widget 1"}
+ {selectedChartId?.title ? selectedChartId?.header : "Widget 1"}
{selectedChartId?.title ? (
) : (
)}
@@ -220,7 +220,7 @@ const Design = () => {
Element to Style
0
? elementOptions.map((opt) => opt.display)
@@ -230,7 +230,7 @@ const Design = () => {
const selected = elementOptions.find(
(opt) => opt.display === value
);
- setSelectedElementToStyle(selected?.value || null);
+ setSelectedElementToStyle(selected?.value ?? null);
}}
/>
@@ -249,7 +249,7 @@ const Design = () => {
Chart Type
{
handleUpdateWidget({ type: value });
@@ -261,7 +261,7 @@ const Design = () => {
Font Family
setSelectedFont(value)}
/>
@@ -270,7 +270,7 @@ const Design = () => {
Size
setSelectedSize(value)}
/>
@@ -279,20 +279,20 @@ const Design = () => {
Weight
setSelectedWeight(value)}
/>
-
setShowColorPicker((prev) => !prev)}
>
Element Color
▾
-
+
{showColorPicker && (
diff --git a/app/src/components/ui/inputs/ToggleHeader.tsx b/app/src/components/ui/inputs/ToggleHeader.tsx
index 0caddb7..d816bd8 100644
--- a/app/src/components/ui/inputs/ToggleHeader.tsx
+++ b/app/src/components/ui/inputs/ToggleHeader.tsx
@@ -14,15 +14,15 @@ const ToggleHeader: React.FC
= ({
return (
{options.map((option, index) => (
-
handleClick(option)} // Call handleClick when an option is clicked
>
{option}
-
+
))}
);
diff --git a/app/src/components/ui/list/DropDownList.tsx b/app/src/components/ui/list/DropDownList.tsx
index 3ec828e..eecacf7 100644
--- a/app/src/components/ui/list/DropDownList.tsx
+++ b/app/src/components/ui/list/DropDownList.tsx
@@ -127,7 +127,7 @@ const DropDownList: React.FC = ({
title="collapse-btn"
className="collapse-icon option"
style={{ transform: isOpen ? "rotate(0deg)" : "rotate(-90deg)" }}
- onClick={handleToggle}
+ // onClick={handleToggle}
>
diff --git a/app/src/pages/Project.tsx b/app/src/pages/Project.tsx
index bc27c27..8cb9a70 100644
--- a/app/src/pages/Project.tsx
+++ b/app/src/pages/Project.tsx
@@ -37,7 +37,7 @@ import CompareLayOut from "../components/ui/compareVersion/CompareLayOut";
import useToggleStore from "../store/useUIToggleStore";
import RegularDropDown from "../components/ui/inputs/RegularDropDown";
import VersionSaved from "../components/layout/sidebarRight/versionHisory/VersionSaved";
-import SimulationPlayer from "../components/ui/simulation/SimulationPlayer";
+import SimulationPlayer from "../components/ui/simulation/simulationPlayer";
import { useProductStore } from "../store/simulation/useProductStore";
const Project: React.FC = () => {
diff --git a/app/src/store/builder/store.ts b/app/src/store/builder/store.ts
index e93078a..a0fb953 100644
--- a/app/src/store/builder/store.ts
+++ b/app/src/store/builder/store.ts
@@ -472,7 +472,7 @@ interface CompareStore {
}
export const useCompareStore = create((set) => ({
- comparePopUp: true,
+ comparePopUp: false,
setComparePopUp: (value) => set({ comparePopUp: value }),
toggleComparePopUp: () =>
set((state) => ({ comparePopUp: !state.comparePopUp })),
diff --git a/app/src/styles/layout/sidebar.scss b/app/src/styles/layout/sidebar.scss
index 7b6ea7f..9006873 100644
--- a/app/src/styles/layout/sidebar.scss
+++ b/app/src/styles/layout/sidebar.scss
@@ -831,7 +831,7 @@
gap: 15px;
padding: 0;
font-size: var(--font-weight-regular);
- color: #4a4a4a;
+ color: var(--text-color);
.reviewChart {
width: 100%;
@@ -851,7 +851,7 @@
.reviewChart {
width: 100%;
height: 150px;
- background: #f0f0f0;
+ background: var(--background-color);
display: flex;
align-items: center;
}
@@ -888,6 +888,7 @@
justify-content: start;
align-items: center;
+
input[type="color"] {
border: none;
outline: none;
@@ -895,6 +896,7 @@
width: 24px;
height: 26px;
border-radius: #{$border-radius-small};
+ padding: 0;
}
}
}