chore: bump toolchain & fix lint

This commit is contained in:
DarkSky
2026-05-24 06:47:17 +08:00
parent adfa51a372
commit 2aa56cbccd
39 changed files with 151 additions and 130 deletions
@@ -48,6 +48,8 @@ import { DropEffect } from './drop-effect';
import * as styles from './node.css';
import type { NodeOperation } from './types';
const EMPTY_OPERATIONS: NodeOperation[] = [];
export type NavigationPanelTreeNodeDropEffectData = {
source: { data: AffineDNDData['draggable'] };
treeInstruction: DropTargetTreeInstruction | null;
@@ -190,9 +192,9 @@ export const NavigationPanelTreeNode = ({
collapsible = true,
canDrop,
reorderable = true,
operations = [],
operations = EMPTY_OPERATIONS,
postfix,
childrenOperations = [],
childrenOperations = EMPTY_OPERATIONS,
childrenPlaceholder,
linkComponent: LinkComponent = WorkbenchLink,
dndData,
@@ -4,9 +4,11 @@ import { NavigationPanelTreeContext } from './context';
import * as styles from './root.css';
import type { NodeOperation } from './types';
const EMPTY_OPERATIONS: NodeOperation[] = [];
export const NavigationPanelTreeRoot = ({
children,
childrenOperations = [],
childrenOperations = EMPTY_OPERATIONS,
placeholder,
}: {
children?: React.ReactNode;
@@ -1,4 +1,4 @@
export function BulledListIcon({ color = 'currentColor' }: { color: string }) {
export function BulledListIcon({ color = 'currentColor' }: { color?: string }) {
return (
<svg
width="16"