Skip to content

Commit 4c3bc9a

Browse files
committed
chore: prettier
1 parent f8c0a88 commit 4c3bc9a

File tree

5 files changed

+16
-19
lines changed

5 files changed

+16
-19
lines changed

src/app/conf/2023/sessions/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Metadata } from "next"
22
import { SessionList } from "@/app/conf/_components/schedule/session-list"
33
import { schedule, speakers } from "@/app/conf/2023/_data"
4-
import { eventsColors } from '../utils'
5-
import { filterCategories2023 } from '../../_components/schedule/filter-categories'
4+
import { eventsColors } from "../utils"
5+
import { filterCategories2023 } from "../../_components/schedule/filter-categories"
66

77
export const metadata: Metadata = {
88
title: "Sessions",
@@ -13,7 +13,7 @@ export default function SessionsPage() {
1313
<div className="bg-[#f4f6f8]">
1414
<div className="container conf-block">
1515
<SessionList
16-
year='2023'
16+
year="2023"
1717
eventsColors={eventsColors}
1818
filterCategories={filterCategories2023}
1919
// @ts-expect-error -- fixme

src/app/conf/2023/speakers/[id]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { speakers, schedule } from "@/app/conf/2023/_data"
1212
import { ChevronLeftIcon } from "@/icons"
1313
import NextLink from "next/link"
1414
import { eventsColors } from "../../utils"
15-
import { filterCategories2023 } from '@/app/conf/_components/schedule/filter-categories'
15+
import { filterCategories2023 } from "@/app/conf/_components/schedule/filter-categories"
1616

1717
type SpeakerProps = { params: { id: string } }
1818

@@ -47,8 +47,8 @@ export default function SpeakerPage({ params }: SpeakerProps) {
4747
.filter(s => s.speakers && s.speakers.some(s => s.username === params.id))
4848
.map(s => ({
4949
...s,
50-
speakers: s.speakers!.map(s =>
51-
speakers.find(speaker => speaker.username === s.username)!,
50+
speakers: s.speakers!.map(
51+
s => speakers.find(speaker => speaker.username === s.username)!,
5252
),
5353
}))
5454

src/app/conf/2024/schedule/[id]/page.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ import { speakers, schedule } from "@/app/conf/2024/_data"
1111
import { metadata as layoutMetadata } from "@/app/conf/2023/layout"
1212
import { ScheduleSession } from "../../../2023/types"
1313

14-
function getEventTitle(
15-
event: ScheduleSession,
16-
speakers: string[],
17-
): string {
14+
function getEventTitle(event: ScheduleSession, speakers: string[]): string {
1815
let { name } = event
1916

2017
if (!speakers) {

src/app/conf/2024/speakers/[id]/page.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ import { speakers, schedule } from "@/app/conf/2024/_data"
1212
import { ChevronLeftIcon } from "@/icons"
1313
import NextLink from "next/link"
1414
import { eventsColors } from "../../utils"
15-
import { filterCategories2024 } from '@/app/conf/_components/schedule/filter-categories'
15+
import { filterCategories2024 } from "@/app/conf/_components/schedule/filter-categories"
1616

1717
type SpeakerProps = { params: { id: string } }
1818

1919
export function generateMetadata({ params }: SpeakerProps): Metadata {
20-
const decodedId = decodeURIComponent(params.id);
20+
const decodedId = decodeURIComponent(params.id)
2121
const speaker = speakers.find(s => s.username === decodedId)!
2222

2323
const keywords = [speaker.name, speaker.company, speaker.position].filter(
@@ -35,19 +35,19 @@ export function generateMetadata({ params }: SpeakerProps): Metadata {
3535
}
3636

3737
export function generateStaticParams() {
38-
return speakers.map(s => ({ id: s.username }));
38+
return speakers.map(s => ({ id: s.username }))
3939
}
4040

4141
export default function SpeakerPage({ params }: SpeakerProps) {
42-
const decodedId = decodeURIComponent(params.id);
42+
const decodedId = decodeURIComponent(params.id)
4343
const speaker = speakers.find(s => s.username === decodedId)!
4444

4545
const s = schedule
4646
.filter(s => s.speakers && s.speakers.some(s => s.username === decodedId))
4747
.map(s => ({
4848
...s,
49-
speakers: s.speakers!.map(s =>
50-
speakers.find(speaker => speaker.username === s.username)!,
49+
speakers: s.speakers!.map(
50+
s => speakers.find(speaker => speaker.username === s.username)!,
5151
),
5252
}))
5353

src/app/conf/_components/thanks.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { SessionList } from "./schedule/session-list"
33
import { Button } from "./button"
44
import leeImage from "../2023/gallery/images/3.jpg"
55
import { schedule, speakers } from "@/app/conf/2023/_data"
6-
import { eventsColors } from '../2023/utils'
7-
import { filterCategories2023 } from './schedule/filter-categories'
6+
import { eventsColors } from "../2023/utils"
7+
import { filterCategories2023 } from "./schedule/filter-categories"
88

99
function shuffle<T extends any[]>(array: T): T {
1010
let currentIndex = array.length
@@ -55,7 +55,7 @@ export async function Thanks() {
5555
</div>
5656
</div>
5757
<SessionList
58-
year='2023'
58+
year="2023"
5959
filterCategories={filterCategories2023}
6060
eventsColors={eventsColors}
6161
showFilter={false}

0 commit comments

Comments
 (0)