mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 12:36:35 +00:00
Fix Slider typing
This commit is contained in:
parent
96128298a2
commit
e476f1c7df
3 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ export type Action =
|
|||
| {
|
||||
type: "SET_BAND_FOCUS";
|
||||
input: string;
|
||||
bandFocused: Band;
|
||||
bandFocused: Slider;
|
||||
}
|
||||
| {
|
||||
type: "UNSET_FOCUS";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue