Skip to content

Commit f57ff2d

Browse files
committed
fix: lint and format
1 parent 0063011 commit f57ff2d

File tree

5 files changed

+39
-32
lines changed

5 files changed

+39
-32
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/stream-controller
2+
*.mp3

src/app/dashboard/streams/page.tsx

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,25 @@ export default async function StreamsPage() {
3030
},
3131
});
3232

33-
const rows = streams.filter(stream => !stream.hideOnDashboard).map((stream) => (
34-
<TableTr key={stream.fixtureId}>
35-
<TableTd>
36-
<StreamStatusIndicator
37-
state={stream.state}
38-
ingestPointId={stream?.ingestPoint?.id}
39-
/>
40-
</TableTd>
41-
<TableTd>
42-
<Link href={`/dashboard/streams/${stream.fixtureId}`}>
43-
{stream.name}
44-
</Link>
45-
</TableTd>
46-
<TableTd>{stream.fixtureId}</TableTd>
47-
<TableTd>{stream.ingestPoint?.name ?? '<unset>'}</TableTd>
48-
</TableTr>
49-
));
33+
const rows = streams
34+
.filter((stream) => !stream.hideOnDashboard)
35+
.map((stream) => (
36+
<TableTr key={stream.fixtureId}>
37+
<TableTd>
38+
<StreamStatusIndicator
39+
state={stream.state}
40+
ingestPointId={stream?.ingestPoint?.id}
41+
/>
42+
</TableTd>
43+
<TableTd>
44+
<Link href={`/dashboard/streams/${stream.fixtureId}`}>
45+
{stream.name}
46+
</Link>
47+
</TableTd>
48+
<TableTd>{stream.fixtureId}</TableTd>
49+
<TableTd>{stream.ingestPoint?.name ?? '<unset>'}</TableTd>
50+
</TableTr>
51+
));
5052

5153
return (
5254
<>

src/app/embed/stream/[id]/page.tsx

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import StreamPlayer from '@/components/StreamPlayer';
22
import { prisma } from '@/lib/db';
3-
import { Center, Container, Loader, Stack, Title } from '@mantine/core';
3+
import { Center, Container, Stack, Title } from '@mantine/core';
44
import { notFound } from 'next/navigation';
55

66
import './style.css';
@@ -26,19 +26,23 @@ export default async function StreamEmbed({
2626
}
2727

2828
if (stream.state === 'Pending') {
29-
return <Container pt={40}>
30-
<Stack>
31-
<Center>
32-
<IconHourglass className='hourglass-spin' size={48} color='#ea3722' />
33-
</Center>
29+
return (
30+
<Container pt={40}>
31+
<Stack>
32+
<Center>
33+
<IconHourglass
34+
className="hourglass-spin"
35+
size={48}
36+
color="#ea3722"
37+
/>
38+
</Center>
3439

35-
<Center>
36-
<Title order={1}>
37-
This stream hasn't started yet
38-
</Title>
39-
</Center>
40-
</Stack>
41-
</Container>
40+
<Center>
41+
<Title order={1}>This stream hasn&apos;t started yet</Title>
42+
</Center>
43+
</Stack>
44+
</Container>
45+
);
4246
}
4347

4448
return (

src/components/StreamPlayer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function StreamPlayerInner({ streamId, isLive, logPlayerErrors }: Props) {
227227
setHasStartedPlaying(true);
228228
}
229229
},
230-
[hasStartedPlaying]
230+
[hasStartedPlaying, isLive, streamId]
231231
);
232232

233233
return (

src/lib/umami.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

33
interface Umami {
4-
track: (event: string, data: any) => void;
4+
track: (event: string, data: unknown) => void;
55
}
66

77
export function maybeGetUmami(): Umami | null {

0 commit comments

Comments
 (0)