From e476f1c7dff9e806b495b5f9e1018e979fc191b5 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sat, 16 Feb 2019 06:19:25 -0800 Subject: [PATCH] Fix Slider typing --- js/components/EqualizerWindow/Band.tsx | 4 ++-- js/reducers/userInput.ts | 4 ++-- js/types.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/components/EqualizerWindow/Band.tsx b/js/components/EqualizerWindow/Band.tsx index e13312a2..36b74f77 100644 --- a/js/components/EqualizerWindow/Band.tsx +++ b/js/components/EqualizerWindow/Band.tsx @@ -2,7 +2,7 @@ import React from "react"; import { connect } from "react-redux"; import Slider from "rc-slider"; import { SET_BAND_FOCUS, UNSET_FOCUS } from "../../actionTypes"; -import { AppState, Dispatch, Band as BandType } from "../../types"; +import { AppState, Dispatch, Slider as SliderType } from "../../types"; interface StateProps { value: number; @@ -14,7 +14,7 @@ interface DispatchProps { } interface OwnProps { id: string; - band: BandType; + band: SliderType; onChange(value: number): void; } diff --git a/js/reducers/userInput.ts b/js/reducers/userInput.ts index 772f8f32..b16ece6e 100644 --- a/js/reducers/userInput.ts +++ b/js/reducers/userInput.ts @@ -1,4 +1,4 @@ -import { Action, Band } from "../types"; +import { Action, Slider } from "../types"; import { SET_FOCUS, SET_BAND_FOCUS, @@ -10,7 +10,7 @@ import { export interface UserInputState { focus: string | null; // TODO: Convert this to an enum? - bandFocused: Band | null; + bandFocused: Slider | null; scrubPosition: number; userMessage: string | null; } diff --git a/js/types.ts b/js/types.ts index 18df674e..ef9d765e 100644 --- a/js/types.ts +++ b/js/types.ts @@ -219,7 +219,7 @@ export type Action = | { type: "SET_BAND_FOCUS"; input: string; - bandFocused: Band; + bandFocused: Slider; } | { type: "UNSET_FOCUS";