Skip to content

Commit

Permalink
Fix eslint errors
Browse files Browse the repository at this point in the history
Ironically, we just merged CI to run lint on every PR, but since this PR branched
off master before this was implemented I missed it.
  • Loading branch information
jameshadfield committed Apr 16, 2020
1 parent dbb6350 commit 307eb8e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/controls/choose-layout.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* eslint-disable react/jsx-no-bind */
/* ^^^ We can get away with this because <ChooseLayout> doesn't rerender frequently, but fixes are welcome */

import React from "react";
import PropTypes from 'prop-types';
import { connect } from "react-redux";
Expand Down Expand Up @@ -34,13 +37,13 @@ class ChooseLayout extends React.Component {
const loopRunning = window.NEXTSTRAIN && window.NEXTSTRAIN.animationTickReference;
if (!loopRunning) {
if (userSelectedLayout === "rect") {
analyticsControlsEvent("change-layout-rectangular");
analyticsControlsEvent("change-layout-rectangular");
} else if (userSelectedLayout === "radial") {
analyticsControlsEvent("change-layout-radial");
} else if (userSelectedLayout === "unrooted") {
analyticsControlsEvent("change-layout-unrooted");
} else if (userSelectedLayout === "clock") {
analyticsControlsEvent("change-layout-clock");
analyticsControlsEvent("change-layout-clock");
} else {
console.warn("Odd... controls/choose-layout.js tried to set a layout we don't offer...");
}
Expand Down

0 comments on commit 307eb8e

Please sign in to comment.