Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickCleary committed Jun 24, 2023
1 parent 29256ec commit 0571f2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion modules/landing/charts/LandingPageChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ export const LandingPageChart: React.FC<LandingPageChartsProps> = ({ datasets, l
tooltip: {
position: 'nearest',
callbacks: {
label: (value) => `${value.formattedValue}% of baseline (${LINE_OBJECTS[HEAVY_RAIL_LINES[value.datasetIndex]].name})`,
label: (value) =>
`${value.formattedValue}% of baseline (${
LINE_OBJECTS[HEAVY_RAIL_LINES[value.datasetIndex]].name
})`,
...callbacks,
},
},
Expand Down
4 changes: 2 additions & 2 deletions modules/landing/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChartDataset } from 'chart.js';
import type { ChartDataset } from 'chart.js';
import {
PEAK_COMPLETE_TRIP_TIMES,
PEAK_RIDERSHIP,
Expand All @@ -10,7 +10,7 @@ import type { Line } from '../../common/types/lines';

const getDatasetOptions = (line: Line): Partial<ChartDataset<'line'>> => {
return {
pointRadius:4,
pointRadius: 4,
borderColor: LINE_COLORS[line ?? 'default'],
borderWidth: 4,
pointBackgroundColor: LINE_COLORS[line ?? 'default'],
Expand Down

0 comments on commit 0571f2c

Please sign in to comment.