Skip to content

Commit a623b92

Browse files
committed
lint fix
1 parent 2d67d0f commit a623b92

5 files changed

Lines changed: 84 additions & 13 deletions

File tree

src/app/[locale]/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ export default async function LocaleLayout({
100100
<link rel='preconnect' href='https://firebaseapp.com' />
101101
<link rel='dns-prefetch' href='https://firebaseapp.com' />
102102
</head>
103-
<body className={`${mulish.className} ${mulish.variable} ${ibmPlexMono.variable}`}>
103+
<body
104+
className={`${mulish.className} ${mulish.variable} ${ibmPlexMono.variable}`}
105+
>
104106
<ThemeRegistry>
105107
<NextIntlClientProvider messages={messages}>
106108
<Providers remoteConfig={remoteConfig}>

src/app/components/CoveredAreaMap.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ import {
4545
// Dynamically import Map and MapGeoJSON for code splitting and bundle size
4646
// Useful since these components are rendered conditionally to the tab and will only import when on page
4747
const GtfsVisualizationMap = dynamic(
48-
async () => await import('./GtfsVisualizationMap').then((mod) => mod.GtfsVisualizationMap),
48+
async () =>
49+
await import('./GtfsVisualizationMap').then(
50+
(mod) => mod.GtfsVisualizationMap,
51+
),
4952
{ ssr: false },
5053
);
5154
const MapGeoJSON = dynamic(

src/app/screens/Analytics/GBFSFeedAnalytics/GBFSFeedAnalyticsTable.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ export const useTableColumns = (): Array<
9191
{cell.getValue<string[]>()?.map((version, index) => (
9292
<Box
9393
key={index}
94-
sx={{ cursor: 'pointer', marginBottom: '2px', padding: '1px', '&:hover': { textDecoration: 'underline', color: '#000' } }}
94+
sx={{
95+
cursor: 'pointer',
96+
marginBottom: '2px',
97+
padding: '1px',
98+
'&:hover': { textDecoration: 'underline', color: '#000' },
99+
}}
95100
onClick={() => {
96101
router.push(`/metrics/gbfs/versions?version=${version}`);
97102
}}

src/app/screens/Analytics/GTFSFeedAnalytics/GTFSFeedAnalyticsTable.tsx

Lines changed: 66 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ export const useTableColumns = (
5252
placement='top-start'
5353
>
5454
<Box
55-
sx={{ cursor: 'pointer', '&:hover': { textDecoration: 'underline', color: '#000' } }}
55+
sx={{
56+
cursor: 'pointer',
57+
'&:hover': { textDecoration: 'underline', color: '#000' },
58+
}}
5659
onClick={() => {
5760
const url = `/feeds/${cell.getValue<string>()}`;
5861
window.open(url, '_blank');
@@ -159,7 +162,12 @@ export const useTableColumns = (
159162
{cell.getValue<string[]>()?.map((error, index) => (
160163
<Box
161164
key={index}
162-
sx={{ cursor: 'pointer', marginBottom: '2px', padding: '1px', '&:hover': { textDecoration: 'underline', color: '#000' } }}
165+
sx={{
166+
cursor: 'pointer',
167+
marginBottom: '2px',
168+
padding: '1px',
169+
'&:hover': { textDecoration: 'underline', color: '#000' },
170+
}}
163171
onClick={() => {
164172
router.push(`/metrics/gtfs/notices?noticeCode=${error}`);
165173
}}
@@ -175,7 +183,18 @@ export const useTableColumns = (
175183
Header: (
176184
<span>
177185
Notice Severity :
178-
<Box component='span' sx={{ borderRadius: '5px', padding: '5px', marginLeft: '5px', marginBottom: '2px', width: 'fit-content', backgroundColor: '#d54402', color: 'white' }}>
186+
<Box
187+
component='span'
188+
sx={{
189+
borderRadius: '5px',
190+
padding: '5px',
191+
marginLeft: '5px',
192+
marginBottom: '2px',
193+
width: 'fit-content',
194+
backgroundColor: '#d54402',
195+
color: 'white',
196+
}}
197+
>
179198
ERROR
180199
</Box>
181200
</span>
@@ -196,7 +215,12 @@ export const useTableColumns = (
196215
{cell.getValue<string[]>()?.map((warning, index) => (
197216
<Box
198217
key={index}
199-
sx={{ cursor: 'pointer', marginBottom: '2px', padding: '1px', '&:hover': { textDecoration: 'underline', color: '#000' } }}
218+
sx={{
219+
cursor: 'pointer',
220+
marginBottom: '2px',
221+
padding: '1px',
222+
'&:hover': { textDecoration: 'underline', color: '#000' },
223+
}}
200224
onClick={() => {
201225
router.push(`/metrics/gtfs/notices?noticeCode=${warning}`);
202226
}}
@@ -212,7 +236,18 @@ export const useTableColumns = (
212236
Header: (
213237
<span>
214238
Notice Severity :
215-
<Box component='span' sx={{ borderRadius: '5px', padding: '5px', marginLeft: '5px', marginBottom: '2px', width: 'fit-content', backgroundColor: '#f3c280', color: 'black' }}>
239+
<Box
240+
component='span'
241+
sx={{
242+
borderRadius: '5px',
243+
padding: '5px',
244+
marginLeft: '5px',
245+
marginBottom: '2px',
246+
width: 'fit-content',
247+
backgroundColor: '#f3c280',
248+
color: 'black',
249+
}}
250+
>
216251
WARNING
217252
</Box>
218253
</span>
@@ -231,7 +266,18 @@ export const useTableColumns = (
231266
Header: (
232267
<span>
233268
Notice Severity :
234-
<Box component='span' sx={{ borderRadius: '5px', padding: '5px', marginLeft: '5px', marginBottom: '2px', width: 'fit-content', backgroundColor: '#badfb7', color: 'black' }}>
269+
<Box
270+
component='span'
271+
sx={{
272+
borderRadius: '5px',
273+
padding: '5px',
274+
marginLeft: '5px',
275+
marginBottom: '2px',
276+
width: 'fit-content',
277+
backgroundColor: '#badfb7',
278+
color: 'black',
279+
}}
280+
>
235281
INFO
236282
</Box>
237283
</span>
@@ -241,7 +287,12 @@ export const useTableColumns = (
241287
{cell.getValue<string[]>()?.map((info, index) => (
242288
<Box
243289
key={index}
244-
sx={{ cursor: 'pointer', marginBottom: '2px', padding: '1px', '&:hover': { textDecoration: 'underline', color: '#000' } }}
290+
sx={{
291+
cursor: 'pointer',
292+
marginBottom: '2px',
293+
padding: '1px',
294+
'&:hover': { textDecoration: 'underline', color: '#000' },
295+
}}
245296
onClick={() => {
246297
router.push(`/metrics/gtfs/notices?noticeCode=${info}`);
247298
}}
@@ -300,7 +351,14 @@ export const useTableColumns = (
300351
{features.map((featureData, index) => (
301352
<Box
302353
key={index}
303-
sx={{ cursor: 'pointer', marginLeft: '10px', '&:hover': { textDecoration: 'underline', color: '#000' } }}
354+
sx={{
355+
cursor: 'pointer',
356+
marginLeft: '10px',
357+
'&:hover': {
358+
textDecoration: 'underline',
359+
color: '#000',
360+
},
361+
}}
304362
onClick={() => {
305363
router.push(
306364
`/metrics/gtfs/features?featureName=${featureData.feature}`,

src/app/screens/Feed/components/FeedSummary.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,14 @@ import {
5353
import { getFeatureComponentDecorators } from '../../../utils/consts';
5454
import dynamic from 'next/dynamic';
5555
import CopyLinkElement from './CopyLinkElement';
56-
57-
const Locations = dynamic(async () => await import('../../../components/Locations'), { ssr: false });
5856
import { formatDateShort } from '../../../utils/date';
5957
import ExternalIds from './ExternalIds';
6058

59+
const Locations = dynamic(
60+
async () => await import('../../../components/Locations'),
61+
{ ssr: false },
62+
);
63+
6164
export interface FeedSummaryProps {
6265
feed: GTFSFeedType | GTFSRTFeedType | GBFSFeedType | undefined;
6366
sortedProviders: string[];

0 commit comments

Comments
 (0)