mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user