Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Nov 14, 2024
1 parent f95b907 commit 80d3040
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 @@ -43,7 +43,7 @@ const DraggingWindow = ({
}: {
dragStart: number | undefined;
currentX: number | undefined;
}): JSX.Element | null => {
}): JSX.Element | null => {
const start = useMemo(() => Math.min(dragStart ?? 0, currentX ?? 0), [dragStart, currentX]);
const width = useMemo(() => Math.abs((dragStart ?? 0) - (currentX ?? 0)), [dragStart, currentX]);

Expand Down Expand Up @@ -71,7 +71,7 @@ const ZoomWindow = ({
width: number;
onZoomWindowChange: (newWindow: NumberDuo) => void;
setIsHoveringDragHandle: (arg: boolean) => void;
}): JSX.Element | null => {
}): JSX.Element | null => {
const windowStartHandleRef = useRef<HTMLDivElement>(null);
const windowEndHandleRef = useRef<HTMLDivElement>(null);
const [zoomWindowState, setZoomWindowState] = useState<NumberDuo | undefined>(zoomWindow);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const alignBeforeAxisCorrection = (val: number): number => {
return 0;
};

export const TimelineGuide = ({ data, width, height, margin }: Props): JSX.Element => {
export const TimelineGuide = ({data, width, height, margin}: Props): JSX.Element => {
const bounds = useMemo(() => {
const bounds: NumberDuo = [Infinity, -Infinity];
data.forEach(cpuData => {
Expand Down

0 comments on commit 80d3040

Please sign in to comment.