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