Skip to content

Commit 1b5ece8

Browse files
authored
Merge pull request #55 from mapcomponents/update-ui
remove unused vars
2 parents 991966c + 03a234b commit 1b5ece8

File tree

6 files changed

+2
-17
lines changed

6 files changed

+2
-17
lines changed

running_contest/src/components/MlLaufwettbewerbApp/MlLaufwettbewerbApp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const MlLaufwettbewerbApp = (props) => {
127127
}
128128
playDisplayDates();
129129
}
130-
}, [playing, appContext.orderedDates]);
130+
}, [playing, appContext.orderedDates, appContext, playDisplayDates]);
131131

132132
return (
133133
<>

running_contest/src/components/MlLaufwettbewerbApp/assets/AppContext.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import * as turf from "@turf/turf";
99
import route from "./route.json";
1010
//const routeTotalKm = Math.round(turf.length(route)*10)/10;
1111
const routeTotalKm = 1751.3;
12-
const debug = false;
1312
const useMercureServer = false;
1413

1514
const backendUrl = "";

running_contest/src/components/MlLaufwettbewerbApp/assets/DailyProgressChart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function DailyProgressChart(props) {
3535
if (dataTmp.length && typeof props.onClick === "function") {
3636
props.onClick(dataTmp[dataTmp.length - 1].x);
3737
}
38-
}, [props.data]);
38+
}, [props, props.data]);
3939

4040
const chartTheme = useMemo(() => {
4141
return {

running_contest/src/components/MlLaufwettbewerbApp/assets/Leaderboard.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,6 @@ function Leaderboard() {
6363
}
6464
}, [selectedUser, appContext.route]);
6565

66-
const showIndividualProgress = (distance) => {
67-
if (distance > 0) {
68-
let tmpRouteProgess = turf.lineChunk(appContext.route, distance);
69-
if (typeof tmpRouteProgess.features[0] !== "undefined") {
70-
setIndividualProgress(tmpRouteProgess.features[0]);
71-
}
72-
}
73-
};
74-
7566
return (
7667
<>
7768
<div key="navbuttonsdiv" className="navigation">

running_contest/src/components/MlLaufwettbewerbApp/assets/LoginForm.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ import Avatar from "@material-ui/core/Avatar";
33
import Button from "@material-ui/core/Button";
44
import CssBaseline from "@material-ui/core/CssBaseline";
55
import TextField from "@material-ui/core/TextField";
6-
import FormControlLabel from "@material-ui/core/FormControlLabel";
7-
import Checkbox from "@material-ui/core/Checkbox";
86
import Link from "@material-ui/core/Link";
9-
import Grid from "@material-ui/core/Grid";
107
import Box from "@material-ui/core/Box";
118
import LockOutlinedIcon from "@material-ui/icons/LockOutlined";
129
import Typography from "@material-ui/core/Typography";

running_contest/src/components/MlLaufwettbewerbApp/assets/themes/default.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { yellow } from "@material-ui/core/colors";
2-
31
const colorTheme = {
42
palette: {
53
type:'light',

0 commit comments

Comments
 (0)