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,10 +1,9 @@
import React, { FC, useCallback, useMemo } from 'react';
import { useSelector } from 'react-redux';
import { SelectableValue } from '@grafana/data';
import { Select } from '@grafana/ui';
import { useSelector } from 'app/types';
import { StoreState } from '../../../../types';
import { getLastKey, getVariablesByKey } from '../../../variables/state/selectors';
export interface Props {
@@ -14,7 +13,7 @@ export interface Props {
}
export const RepeatRowSelect: FC<Props> = ({ repeat, onChange, id }) => {
const variables = useSelector((state: StoreState) => {
const variables = useSelector((state) => {
return getVariablesByKey(getLastKey(state), state);
});