diff --git a/components/dashboard/widget-settings-modal.tsx b/components/dashboard/widget-settings-modal.tsx index dfdf51f..cc6646a 100644 --- a/components/dashboard/widget-settings-modal.tsx +++ b/components/dashboard/widget-settings-modal.tsx @@ -22,6 +22,7 @@ import { } from "@/components/ui/select" import { WidgetConfig } from "@/hooks/useWidgetLayout" import { Settings2 } from "lucide-react" +import { ScrollArea } from "@/components/ui/scroll-area" interface WidgetSettingsModalProps { widget: WidgetConfig | null @@ -69,213 +70,215 @@ export function WidgetSettingsModal({ widget, open, onOpenChange, onSave }: Widg -
- {/* Resize Selection */} -
- -
- - + +
+ {/* Resize Selection */} +
+ +
+ + +
+
+ +
+ {/* Recent Activity Settings */} + {widget.id === "recent-activity" && ( +
+
+ + +
+
+ )} + + {/* Top Products Settings */} + {widget.id === "top-products" && ( +
+
+ + +
+
+ + updateSetting("showRevenue", checked)} + /> +
+
+ )} + + {/* Revenue Chart Settings */} + {widget.id === "revenue-chart" && ( +
+
+ + +
+
+ + updateSetting("showComparison", checked)} + /> +
+
+ )} + + {/* Low Stock Settings */} + {widget.id === "low-stock" && ( +
+
+ + updateSetting("threshold", parseInt(e.target.value) || 5)} + min={1} + max={100} + /> +
+
+ + +
+
+ )} + + {/* Recent Customers Settings */} + {widget.id === "recent-customers" && ( +
+
+ + +
+
+ + updateSetting("showSpent", checked)} + /> +
+
+ )} + + {/* Pending Chats Settings */} + {widget.id === "pending-chats" && ( +
+
+ + updateSetting("showPreview", checked)} + /> +
+
+ )} + + {/* Overview Settings */} + {widget.id === "overview" && ( +
+
+ + updateSetting("showChange", checked)} + /> +
+
+ )} + + {/* Quick Actions - no settings */} + {widget.id === "quick-actions" && ( +

+ This widget has no customizable settings. +

+ )}
- -
- {/* Recent Activity Settings */} - {widget.id === "recent-activity" && ( -
-
- - -
-
- )} - - {/* Top Products Settings */} - {widget.id === "top-products" && ( -
-
- - -
-
- - updateSetting("showRevenue", checked)} - /> -
-
- )} - - {/* Revenue Chart Settings */} - {widget.id === "revenue-chart" && ( -
-
- - -
-
- - updateSetting("showComparison", checked)} - /> -
-
- )} - - {/* Low Stock Settings */} - {widget.id === "low-stock" && ( -
-
- - updateSetting("threshold", parseInt(e.target.value) || 5)} - min={1} - max={100} - /> -
-
- - -
-
- )} - - {/* Recent Customers Settings */} - {widget.id === "recent-customers" && ( -
-
- - -
-
- - updateSetting("showSpent", checked)} - /> -
-
- )} - - {/* Pending Chats Settings */} - {widget.id === "pending-chats" && ( -
-
- - updateSetting("showPreview", checked)} - /> -
-
- )} - - {/* Overview Settings */} - {widget.id === "overview" && ( -
-
- - updateSetting("showChange", checked)} - /> -
-
- )} - - {/* Quick Actions - no settings */} - {widget.id === "quick-actions" && ( -

- This widget has no customizable settings. -

- )} -
-
+