mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-06-14 00:56:00 +00:00
feat(dashboard): refina experiencia dos widgets
This commit is contained in:
@@ -21,6 +21,7 @@ type WidgetSettingsDialogProps = {
|
||||
onToggleWidget: (widgetId: string) => void;
|
||||
onReset: () => void;
|
||||
triggerClassName?: string;
|
||||
triggerLabel?: string;
|
||||
};
|
||||
|
||||
export function WidgetSettingsDialog({
|
||||
@@ -28,6 +29,7 @@ export function WidgetSettingsDialog({
|
||||
onToggleWidget,
|
||||
onReset,
|
||||
triggerClassName,
|
||||
triggerLabel = "Widgets",
|
||||
}: WidgetSettingsDialogProps) {
|
||||
const [open, setOpen] = useState(false);
|
||||
|
||||
@@ -40,12 +42,12 @@ export function WidgetSettingsDialog({
|
||||
className={cn("gap-2", triggerClassName)}
|
||||
>
|
||||
<RiSettings4Line className="size-4" />
|
||||
Widgets
|
||||
{triggerLabel}
|
||||
</Button>
|
||||
</DialogTrigger>
|
||||
<DialogContent className="sm:max-w-md">
|
||||
<DialogHeader>
|
||||
<DialogTitle>Configurar Widgets</DialogTitle>
|
||||
<DialogTitle>Configurar widgets</DialogTitle>
|
||||
<DialogDescription>
|
||||
Escolha quais widgets deseja exibir no seu dashboard.
|
||||
</DialogDescription>
|
||||
@@ -91,7 +93,7 @@ export function WidgetSettingsDialog({
|
||||
className="gap-2"
|
||||
>
|
||||
<RiRefreshLine className="size-4" />
|
||||
Restaurar Padrão
|
||||
Restaurar padrão
|
||||
</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
|
||||
Reference in New Issue
Block a user