Make onSelected non-optional
This commit is contained in:
@@ -329,7 +329,7 @@ export interface SpacePanelItemProps {
|
|||||||
className?: string;
|
className?: string;
|
||||||
icon?: JSX.Element;
|
icon?: JSX.Element;
|
||||||
label: string;
|
label: string;
|
||||||
onSelected?(): void;
|
onSelected: () => void;
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
tooltip?: string;
|
tooltip?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export interface SpacePanelItemProps {
|
|||||||
/**
|
/**
|
||||||
* Callback when the item is selected
|
* Callback when the item is selected
|
||||||
*/
|
*/
|
||||||
onSelected?(): void;
|
onSelected: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user