Function
isOptionSelectable
(option: ContextMenuQueryItem)
Source from the content-addressed store, hash-verified
| 247 | } |
| 248 | |
| 249 | const isOptionSelectable = (option: ContextMenuQueryItem): boolean => { |
| 250 | return ( |
| 251 | option.type !== ContextMenuOptionType.NoResults && |
| 252 | option.type !== ContextMenuOptionType.URL && |
| 253 | option.type !== ContextMenuOptionType.SectionHeader |
| 254 | ) |
| 255 | } |
| 256 | |
| 257 | const handleSettingsClick = (e: React.MouseEvent) => { |
| 258 | // Prevent any default behavior |
Tested by
no test coverage detected