Chore: Update and enforce usage of typed react-redux hooks (#55349)

* Chore: Update and enforce usage of typed react-redux hooks
This commit is contained in:
kay delaney
2022-09-19 10:49:35 +01:00
committed by GitHub
parent a3ff758874
commit 64bbb7a7ce
85 changed files with 207 additions and 247 deletions

View File

@@ -1,5 +1,4 @@
import { useEffect } from 'react';
import { useDispatch } from 'react-redux';
import useAsyncFn from 'react-use/lib/useAsyncFn';
import { locationUtil } from '@grafana/data';
@@ -10,6 +9,7 @@ import { contextSrv } from 'app/core/core';
import { updateDashboardName } from 'app/core/reducers/navBarTree';
import { DashboardModel } from 'app/features/dashboard/state';
import { saveDashboard as saveDashboardApiCall } from 'app/features/manage-dashboards/state/actions';
import { useDispatch } from 'app/types';
import { DashboardSavedEvent } from 'app/types/events';
import { SaveDashboardOptions } from './types';