Skip to content

Commit

Permalink
misspell of hook name
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpark committed Apr 25, 2023
1 parent 8af5c0d commit 76e8d21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import { getChartRequiredFieldsMissingMessage } from 'src/utils/getChartRequired
import { DataTablesPane } from '../DataTablesPane';
import { ChartPills } from '../ChartPills';
import { ExploreAlert } from '../ExploreAlert';
import useChartPanelResize from './useResizeDectorByObserver';
import useResizeDetectorByObserver from './useResizeDetectorByObserver';

const propTypes = {
actions: PropTypes.object.isRequired,
Expand Down Expand Up @@ -146,7 +146,7 @@ const ExploreChartPanel = ({
observerRef: resizeObserverRef,
width: chartPanelWidth,
height: chartPanelHeight,
} = useChartPanelResize();
} = useResizeDetectorByObserver();
const [splitSizes, setSplitSizes] = useState(
isFeatureEnabled(FeatureFlag.DATAPANEL_CLOSED_BY_DEFAULT)
? INITIAL_SIZES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import { useState, useCallback, useRef } from 'react';
import { useResizeDetector } from 'react-resize-detector';

export default function useResizeDetectorByTarget() {
export default function useResizeDetectorByObserver() {
const ref = useRef<HTMLDivElement>();
const [{ width, height }, setChartPanelSize] = useState<{
width?: number;
Expand Down

0 comments on commit 76e8d21

Please sign in to comment.