fix: show project widgets in settings
This commit is contained in:
@@ -86,31 +86,27 @@ 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}
|
isToggling={toggleMutation.isPending}
|
||||||
isToggling={toggleMutation.isPending}
|
isUpdatingOptions={updateOptionsMutation.isPending}
|
||||||
isUpdatingOptions={updateOptionsMutation.isPending}
|
onToggle={(enabled) => handleToggle('realtime', enabled)}
|
||||||
onToggle={(enabled) => handleToggle('realtime', enabled)}
|
onUpdateOptions={(options) =>
|
||||||
onUpdateOptions={(options) =>
|
updateOptionsMutation.mutate({
|
||||||
updateOptionsMutation.mutate({
|
projectId,
|
||||||
projectId,
|
organizationId,
|
||||||
organizationId,
|
options,
|
||||||
options,
|
})
|
||||||
})
|
}
|
||||||
}
|
/>
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{counterWidget && (
|
<CounterWidgetSection
|
||||||
<CounterWidgetSection
|
widget={counterWidget as any}
|
||||||
widget={counterWidget}
|
dashboardUrl={dashboardUrl}
|
||||||
dashboardUrl={dashboardUrl}
|
isToggling={toggleMutation.isPending}
|
||||||
isToggling={toggleMutation.isPending}
|
onToggle={(enabled) => handleToggle('counter', enabled)}
|
||||||
onToggle={(enabled) => handleToggle('counter', enabled)}
|
/>
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user