mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 18:41:52 +08:00
chore: bump toolchain & fix lint
This commit is contained in:
@@ -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
-1
@@ -1,4 +1,4 @@
|
||||
export function BulledListIcon({ color = 'currentColor' }: { color: string }) {
|
||||
export function BulledListIcon({ color = 'currentColor' }: { color?: string }) {
|
||||
return (
|
||||
<svg
|
||||
width="16"
|
||||
|
||||
Reference in New Issue
Block a user