perf: simplify widget optimizations

This commit is contained in:
ajnart committed 2026-08-14 11:32:11 +02:00
1 parent 22d5770977
commit 63dca7d1b6
7 files changed
+18 -67

No files matched your search

+2 -2
View File
@@ -28,11 +28,11 @@ export const { definition, componentLoader } = createWidgetDefinition("bookmarks
openNewTab: factory.switch({ defaultValue: true }),
withBorder: factory.switch({ defaultValue: false }),
items: factory.sortableItemList<RouterOutputs["app"]["all"][number], string>({
ItemComponent: ({ item, handle: Handle, removeItem, rootAttributes }) => {
ItemComponent: ({ item, handle, removeItem, rootAttributes }) => {
return (
<Group {...rootAttributes} tabIndex={0} justify="space-between" wrap="nowrap">
<Group wrap="nowrap">
<Handle />
{handle}
<Group>
<Avatar src={item.iconUrl} alt={item.name} />