mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 18:17:38 +00:00
Fix lint errors
This commit is contained in:
parent
1087cba99e
commit
5a8e7fe557
4 changed files with 13 additions and 5 deletions
|
|
@ -39,5 +39,8 @@
|
|||
"not dead",
|
||||
"not ie <= 11",
|
||||
"not op_mini all"
|
||||
]
|
||||
],
|
||||
"eslintConfig": {
|
||||
"extends": "react-app"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,6 +50,11 @@ export default class DownloadLink extends React.Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
return <a {...this.props} href={this.state.href || this.props.href} />;
|
||||
return (
|
||||
<a {...this.props} href={this.state.href || this.props.href}>
|
||||
{/* We have to explicitly set the children to make ESLint happy */}
|
||||
{this.props.children}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React from "react";
|
||||
import { connect } from "react-redux";
|
||||
import WebampComponent from "./WebampComponent";
|
||||
import Readme from "./Readme";
|
||||
// import Readme from "./Readme";
|
||||
import DownloadLink from "./DownloadLink";
|
||||
import * as Utils from "./utils";
|
||||
import * as Selectors from "./redux/selectors";
|
||||
|
|
|
|||
|
|
@ -3,14 +3,14 @@ import { of, from, empty } from "rxjs";
|
|||
import * as Actions from "./actionCreators";
|
||||
import * as Selectors from "./selectors";
|
||||
import * as Utils from "../utils";
|
||||
import { filter, switchMap, map, tap } from "rxjs/operators";
|
||||
import { filter, switchMap, map } from "rxjs/operators";
|
||||
import { search } from "../algolia";
|
||||
|
||||
const urlChangedEpic = actions =>
|
||||
actions.pipe(
|
||||
filter(action => action.type === "URL_CHANGED"),
|
||||
switchMap(action => {
|
||||
if (action.location.pathname == "/about/") {
|
||||
if (action.location.pathname === "/about/") {
|
||||
return of(Actions.requestedAboutPage());
|
||||
}
|
||||
const params = new URLSearchParams(action.location.search);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue