Skip to content

Commit

Permalink
ESLint fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Graule committed Jul 17, 2024
1 parent bddf971 commit d02faf5
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 @@ -5,6 +5,7 @@ import React, { useState, useEffect, useRef } from 'react';
export interface ScrollBarThumbProps {
scrollBarThumbWidth: number;
svgContainerRect: {topLeft: number, width: number, height: number};
// eslint-disable-next-line no-unused-vars
handleChartScroll: (thumbX: number, svgContainerRect: ScrollBarThumbProps['svgContainerRect']) => void;
}

Expand All @@ -18,7 +19,7 @@ const ScrollBarThumb : React.FC<ScrollBarThumbProps> = ({ scrollBarThumbWidth, s

/* Be careful useEffect runs before parent props are received */
useEffect(() => {
const handleMouseUp = (e: any) => {
const handleMouseUp = () => {
if (thumbRef.current) {
isDragging.current = false;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
"use client";

import React, { useState, useLayoutEffect, useRef } from 'react'
import { SatelliteNumber } from '@/lib/store'
import { XAxis, CartesianGrid, Line, LineChart, Tooltip, YAxis, Label, ResponsiveContainer, Legend } from 'recharts';
import { XAxis, CartesianGrid, Line, LineChart, Tooltip, YAxis, ResponsiveContainer, Legend } from 'recharts';
import { LaunchDateCountDownProps } from './launchDateCountDown';
import ScrollBarThumb, { ScrollBarThumbProps } from './_orbitDataGraphComponents/ScrollBarThumb';

Expand Down

0 comments on commit d02faf5

Please sign in to comment.