fix: show project widgets in settings

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-01-19 21:50:12 +01:00
parent 00f2e2937d
commit b5792df69f

View File

@@ -86,7 +86,6 @@ function Component() {
return ( return (
<div className="space-y-6"> <div className="space-y-6">
{realtimeWidget && (
<RealtimeWidgetSection <RealtimeWidgetSection
widget={realtimeWidget as any} widget={realtimeWidget as any}
dashboardUrl={dashboardUrl} dashboardUrl={dashboardUrl}
@@ -101,16 +100,13 @@ function Component() {
}) })
} }
/> />
)}
{counterWidget && (
<CounterWidgetSection <CounterWidgetSection
widget={counterWidget} widget={counterWidget as any}
dashboardUrl={dashboardUrl} dashboardUrl={dashboardUrl}
isToggling={toggleMutation.isPending} isToggling={toggleMutation.isPending}
onToggle={(enabled) => handleToggle('counter', enabled)} onToggle={(enabled) => handleToggle('counter', enabled)}
/> />
)}
</div> </div>
); );
} }