Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-mackinnon committed Mar 24, 2024
1 parent 809cc63 commit da47b48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/components/TrackInfoView.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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 => {
Expand Down Expand Up @@ -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 }));
};

Expand Down
2 changes: 1 addition & 1 deletion src/shared-components/ParamScrubText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit da47b48

Please sign in to comment.