style(widgets): apply formatter to dashboard and addon files

This commit is contained in:
Developer
2026-06-22 08:05:44 +00:00
parent ed7a7a5ce0
commit 09eb76bf0f
5 changed files with 24 additions and 73 deletions
+1 -3
View File
@@ -19,9 +19,7 @@ export function AddonPage() {
if (!Page) {
return (
<Alert>
<AlertDescription>
Addon "{addonId}" is not installed.
</AlertDescription>
<AlertDescription>Addon "{addonId}" is not installed.</AlertDescription>
</Alert>
);
}
+4 -13
View File
@@ -139,9 +139,7 @@ function ShortcutDialog({
<Input
id="shortcut-icon"
value={draft.icon}
onChange={(e) =>
onChange({ ...draft, icon: e.target.value })
}
onChange={(e) => onChange({ ...draft, icon: e.target.value })}
/>
</Field>
</div>
@@ -183,9 +181,7 @@ function ShortcutDialog({
<Input
id="shortcut-url"
value={draft.url}
onChange={(e) =>
onChange({ ...draft, url: e.target.value })
}
onChange={(e) => onChange({ ...draft, url: e.target.value })}
/>
</Field>
) : draft.shortcut_type === "action" ? (
@@ -237,9 +233,7 @@ function ShortcutDialog({
<Input
id="shortcut-notes"
value={draft.notes}
onChange={(e) =>
onChange({ ...draft, notes: e.target.value })
}
onChange={(e) => onChange({ ...draft, notes: e.target.value })}
/>
</Field>
<div className="flex items-center gap-2">
@@ -385,10 +379,7 @@ export function Dashboard() {
description="Quick links to websites today, with room for action and user shortcuts later."
action={
<div className="flex gap-2">
<Button
variant="outline"
onClick={() => setWidgetDialogOpen(true)}
>
<Button variant="outline" onClick={() => setWidgetDialogOpen(true)}>
Edit dashboard
</Button>
<Button variant="outline" onClick={openCreateShortcut}>