mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Fix Vega react eslint errors (#54259)
This commit is contained in:
parent
53d1c96a4a
commit
7ffe38569e
2 changed files with 2 additions and 8 deletions
|
@ -113,12 +113,6 @@ module.exports = {
|
|||
'react-hooks/exhaustive-deps': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['src/legacy/core_plugins/vis_type_vega/**/*.{js,ts,tsx}'],
|
||||
rules: {
|
||||
'react-hooks/exhaustive-deps': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['src/legacy/ui/public/vis/**/*.{js,ts,tsx}'],
|
||||
rules: {
|
||||
|
|
|
@ -34,12 +34,12 @@ function VegaActionsMenu({ formatHJson, formatJson }: VegaActionsMenuProps) {
|
|||
const onHJsonCLick = useCallback(() => {
|
||||
formatHJson();
|
||||
setIsPopoverOpen(false);
|
||||
}, [isPopoverOpen, formatHJson]);
|
||||
}, [formatHJson]);
|
||||
|
||||
const onJsonCLick = useCallback(() => {
|
||||
formatJson();
|
||||
setIsPopoverOpen(false);
|
||||
}, [isPopoverOpen, formatJson]);
|
||||
}, [formatJson]);
|
||||
|
||||
const closePopover = useCallback(() => setIsPopoverOpen(false), []);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue