mirror of
https://github.com/nickzuber/meteorite.git
synced 2024-10-05 15:47:33 +03:00
Fix statistics UI
This commit is contained in:
parent
3295789335
commit
baefcb0276
@ -691,12 +691,12 @@ function Scene({
|
||||
};
|
||||
|
||||
readStatistics = readStatistics.map(n => parseInt(n, 10));
|
||||
// const lastWeekStats = readStatistics.slice(0, 7);
|
||||
// const thisWeekStats = readStatistics.slice(7);
|
||||
const lastWeekStats = readStatistics.slice(0, 7);
|
||||
const thisWeekStats = readStatistics.slice(7);
|
||||
|
||||
// Faux stats for pretty screenshots.
|
||||
const lastWeekStats = [4, 2, 7, 4, 5, 8, 1];
|
||||
const thisWeekStats = [7, 8, 5, 6, 4, 9, 12];
|
||||
// const lastWeekStats = [4, 2, 7, 4, 5, 8, 1];
|
||||
// const thisWeekStats = [7, 8, 5, 6, 4, 9, 12];
|
||||
|
||||
const percentageDeltaToday = getPercentageDelta(counts.cur, counts.prev);
|
||||
const highestRepoReadCount = Object.values(reposReadCounts).reduce(
|
||||
|
Loading…
Reference in New Issue
Block a user