diff --git a/src/components/TrackInfoView.tsx b/src/components/TrackInfoView.tsx index f3fb019..0de0ab9 100644 --- a/src/components/TrackInfoView.tsx +++ b/src/components/TrackInfoView.tsx @@ -1,5 +1,4 @@ -import React, { ReactElement, useState } from "react"; -import { useAppSelector, useAppDispatch, useMobileMode } from "../hooks"; +import { ReactElement, useState } from "react"; import { Button, Stack, IconButton } from "@mui/material"; import { Tune, ArrowLeft, ArrowRight } from "@mui/icons-material"; import { SxProps, styled } from "@mui/system"; @@ -11,7 +10,7 @@ import { selectTrackIsEffectivelyMuted, } from "../reducers/tracksSlice"; import { rotateLeft, rotateRight } from "../reducers/stepsSlice"; - +import { useAppDispatch, useAppSelector, useMobileMode } from "../hooks"; import { TrackMenu } from "./TrackMenu"; const getButtonStyle = (on: boolean, size: number): SxProps => { @@ -59,17 +58,17 @@ export function TrackInfoView(props: TrackInfoProps): ReactElement { const onRotateRightClick = (_: any): void => { dispatch(rotateRight({ trackId: props.trackId })); }; - const onEnableTrackButtonTouchStart = (e: any): void => { + const onEnableTrackButtonTouchStart = (_: any): void => { setReceivedTouchEvent(true); dispatchMute(); }; - const onEnableTrackButtonClick = (e: any): void => { + const onEnableTrackButtonClick = (_: any): void => { if (receivedTouchEvent) { return; } dispatchMute(); }; - const onParamViewToggleClick = (e_: any): void => { + const onParamViewToggleClick = (_: any): void => { dispatch(toggleParamViewVisibility({ trackId: props.trackId })); }; diff --git a/src/shared-components/ParamScrubText.tsx b/src/shared-components/ParamScrubText.tsx index c63e0c4..9008958 100644 --- a/src/shared-components/ParamScrubText.tsx +++ b/src/shared-components/ParamScrubText.tsx @@ -9,7 +9,7 @@ import { styled } from "@mui/system"; import { useParameter, ParamInfo } from "../hooks"; const StyledInput = styled("input")( - ({ theme }) => ` + () => ` border: none; background-color: rgb(18,18,18); color: rgb(229,229,229);