Skip to content

Commit e5f03ca

Browse files
author
John Rogers
committed
tweaks to allow build to complete without linter warnings about caniuse and unused methods
1 parent ac6426b commit e5f03ca

3 files changed

Lines changed: 14 additions & 17 deletions

File tree

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/App.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ import MakeMeJSON from "./MakeMeJSON.js";
3535
import "react-toastify/dist/ReactToastify.css";
3636
import YouTube from "react-youtube";
3737
import "../css/youtube.css";
38-
import { useHistory } from "react-router-dom";
39-
4038
function App() {
41-
const history = useHistory();
4239
const [fullscreen, setFullscreen] = useState(false);
4340
const [existingInstruments, setExistingInstruments] = useState([]);
4441
const [apiData, setApiData] = useState({});
@@ -154,20 +151,20 @@ function App() {
154151
if (fileInfos)
155152
return match(fileInfos, forceModel).then((data) => {
156153
let simpleApi = simplifyApi(data, fileInfos);
157-
154+
158155
// Filter existing computedMatches to remove any references to removed instruments
159-
setComputedMatches(prev => {
156+
setComputedMatches((prev) => {
160157
if (!prev) return prev;
161158
const validQuestionIndices = new Set(
162-
fileInfos.flatMap((f, i) =>
163-
f.questions.map((_, qIdx) => qIdx)
164-
)
159+
fileInfos.flatMap((f, i) => f.questions.map((_, qIdx) => qIdx))
165160
);
166-
return prev.filter(match =>
167-
validQuestionIndices.has(match.qi) && validQuestionIndices.has(match.mqi)
161+
return prev.filter(
162+
(match) =>
163+
validQuestionIndices.has(match.qi) &&
164+
validQuestionIndices.has(match.mqi)
168165
);
169166
});
170-
167+
171168
setApiData(simpleApi);
172169
});
173170
},

src/components/AppBar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ function HarmonyAppBar() {
8484
}
8585
};
8686

87-
const handleLanguageMenuClick = (menuItem) => {
88-
console.log(menuItem);
89-
};
87+
// const handleLanguageMenuClick = (menuItem) => {
88+
// console.log(menuItem);
89+
// };
9090

9191
const handleCloseUserMenu = () => {
9292
setAnchorUser(null);

0 commit comments

Comments
 (0)