Skip to content

Commit

Permalink
Update SortableTree types
Browse files Browse the repository at this point in the history
  • Loading branch information
georgecwan committed Oct 23, 2023
1 parent a03c135 commit 3d93c0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ type VisibilityOrderingItemProps = {
childCount: number;
item: FlattenedIrisGridTreeItem;
onVisibilityChange: (modelIndexes: number[], isVisible: boolean) => void;
onClick: (
name: string,
event: React.MouseEvent<HTMLElement, MouseEvent>
) => void;
onClick: (name: string, event: React.MouseEvent<HTMLElement>) => void;
onGroupDelete: (group: ColumnHeaderGroup) => void;
onGroupColorChange: (
group: ColumnHeaderGroup,
Expand Down Expand Up @@ -63,7 +60,7 @@ const VisibilityOrderingItem = forwardRef<
);

const handleClick = useCallback(
(event: React.MouseEvent<HTMLElement, MouseEvent>) => {
(event: React.MouseEvent<HTMLElement>) => {
onClick(value, event);
},
[onClick, value]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ interface Props<T> {
childCount?: number;
value: string;
item: FlattenedItem<T>;
ref: React.Ref<HTMLDivElement> | null;
ref?: React.Ref<HTMLDivElement>;
handleProps?: Record<string, unknown>;
}) => JSX.Element;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ interface Props<T> {
childCount?: number;
value: string;
item: FlattenedItem<T>;
ref: React.Ref<HTMLDivElement> | null;
ref?: React.Ref<HTMLDivElement>;
handleProps?: Record<string, unknown>;
}) => JSX.Element;
activeId: string | null;
Expand Down

0 comments on commit 3d93c0f

Please sign in to comment.