Fix linting problems

This commit is contained in:
Tristan Daniël Maat 2021-04-07 23:14:42 +01:00
parent de932501c5
commit 7d028fdebd
Signed by: tlater
GPG key ID: 49670FD774E43268
10 changed files with 52 additions and 46 deletions

View file

@ -2,8 +2,8 @@ import React from "react";
import { connect } from "react-redux";
import classNames from "classnames";
import { State } from "../store";
import { MusicState, togglePlay } from "../store/music/types";
import { Dispatch, State } from "../store";
import { togglePlay } from "../store/music/types";
type IndicatorProps = {
muted: boolean;
@ -16,13 +16,13 @@ type IndicatorDispatch = {
type Props = IndicatorProps & IndicatorDispatch;
class Indicator extends React.Component<Props, {}> {
class Indicator extends React.Component<Props, State> {
click() {
this.props.play();
}
render() {
let classes = classNames({
const classes = classNames({
btn: true,
"col-auto": true,
fas: true,
@ -49,7 +49,7 @@ function mapStateToProps(state: State): IndicatorProps {
};
}
function mapDispatchToProps(dispatch: Redux.Dispatch<any>): IndicatorDispatch {
function mapDispatchToProps(dispatch: Dispatch): IndicatorDispatch {
return {
play: () => {
dispatch(togglePlay());