Import first

This commit is contained in:
Jordan Eldredge 2019-03-19 06:55:23 -07:00
parent 2c1183c470
commit ee439b0e2c
2 changed files with 5 additions and 5 deletions

View file

@ -14,8 +14,9 @@ import {
} from "../actionTypes";
import { WINDOWS } from "../constants";
import { Dispatchable } from "../types";
import { ensureWindowsAreOnScreen, showWindow, hideWindow } from "./windows";
import { SerializedStateV1 } from "../serializedStates/v1Types";
import * as Selectors from "../selectors";
import { ensureWindowsAreOnScreen, showWindow, hideWindow } from "./windows";
export {
toggleDoubleSizeMode,
@ -111,8 +112,6 @@ export {
scheduleMilkdropMessage
} from "./milkdrop";
import * as Selectors from "../selectors";
export function close(): Dispatchable {
return dispatch => {
// TODO: This could probably be improved by adding a "PREVENT_CLOSE" action

View file

@ -6,13 +6,14 @@ import { connect } from "react-redux";
import RcSlider from "rc-slider";
// @ts-ignore
import SliderComponent from "rc-slider/lib/Slider";
// Here we inform TypeScript to use the default export's type for our partial import.
const Slider = SliderComponent as typeof RcSlider;
import { setPlaylistScrollPosition } from "../../actionCreators";
import { getVisibleTrackIds, getPlaylistScrollPosition } from "../../selectors";
import { AppState, Dispatch } from "../../types";
// Here we inform TypeScript to use the default export's type for our partial import.
const Slider = SliderComponent as typeof RcSlider;
interface StateProps {
playlistScrollPosition: number;
allTracksAreVisible: boolean;