mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-04 06:21:43 +01:00
Fixed linting issues
This commit is contained in:
parent
b92f744241
commit
1522a8731d
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* This file is part of Player Analytics (Plan).
|
||||
*
|
||||
* Plan is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License v3 as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Plan is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with Plan. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.djrapitops.plan.identification.storage;
|
||||
|
||||
import com.djrapitops.plan.PlanSystem;
|
||||
|
@ -12,8 +12,8 @@ const PlayerbaseGraph = ({data}) => {
|
||||
const id = 'playerbase-graph';
|
||||
|
||||
useEffect(() => {
|
||||
const reduceColors = (series) => series.map(slice => {
|
||||
return {...slice, color: withReducedSaturation(slice.color)}
|
||||
const reduceColors = (lines) => lines.map(line => {
|
||||
return {...line, color: withReducedSaturation(line.color)}
|
||||
});
|
||||
|
||||
NoDataDisplay(Highcharts);
|
||||
@ -48,7 +48,7 @@ const PlayerbaseGraph = ({data}) => {
|
||||
},
|
||||
series: nightModeEnabled ? reduceColors(series) : series
|
||||
})
|
||||
}, [data, graphTheming, id, t])
|
||||
}, [data, graphTheming, id, t, nightModeEnabled])
|
||||
|
||||
return (
|
||||
<div className="chart-area" id={id}>
|
||||
|
@ -9,7 +9,7 @@ const PlayerbasePie = ({series}) => {
|
||||
const {nightModeEnabled, graphTheming} = useTheme();
|
||||
|
||||
useEffect(() => {
|
||||
const reduceColors = (series) => series.map(slice => {
|
||||
const reduceColors = (slices) => slices.map(slice => {
|
||||
return {...slice, color: withReducedSaturation(slice.color)}
|
||||
});
|
||||
|
||||
@ -40,7 +40,7 @@ const PlayerbasePie = ({series}) => {
|
||||
},
|
||||
series: [pieSeries]
|
||||
});
|
||||
}, [series, graphTheming, nightModeEnabled]);
|
||||
}, [series, graphTheming, nightModeEnabled, t]);
|
||||
|
||||
return (<div className="chart-area" id="playerbase-pie"/>);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ const ServerPie = ({colors, series}) => {
|
||||
},
|
||||
series: [pieSeries]
|
||||
});
|
||||
}, [colors, series, graphTheming, nightModeEnabled]);
|
||||
}, [colors, series, graphTheming, nightModeEnabled, t]);
|
||||
|
||||
return (<div className="chart-pie" id="server-pie"/>);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user