mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Avoid explicit React.FC<Props> when possible (round 2) (#64749)
This commit is contained in:
@@ -26,7 +26,7 @@ import { drawMarkers, FieldIndices } from './utils';
|
||||
|
||||
interface CandlestickPanelProps extends PanelProps<CandlestickOptions> {}
|
||||
|
||||
export const CandlestickPanel: React.FC<CandlestickPanelProps> = ({
|
||||
export const CandlestickPanel = ({
|
||||
data,
|
||||
id,
|
||||
timeRange,
|
||||
@@ -37,7 +37,7 @@ export const CandlestickPanel: React.FC<CandlestickPanelProps> = ({
|
||||
fieldConfig,
|
||||
onChangeTimeRange,
|
||||
replaceVariables,
|
||||
}) => {
|
||||
}: CandlestickPanelProps) => {
|
||||
const { sync, canAddAnnotations, onThresholdsChange, canEditThresholds, showThresholds, onSplitOpen } =
|
||||
usePanelContext();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user