Skip to content

Commit 5889a82

Browse files
committed
fixes
1 parent a19a966 commit 5889a82

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

frontend/src/components/schedule-event-detail/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,24 @@ import { useCurrentLanguage } from "~/locale/context";
2121

2222
import { Fragment } from "react";
2323
import { TableItemHeader } from "~/components/table-item-header";
24-
import type { ProposalMaterial, TalkQueryResult } from "~/types";
24+
import type { ProposalMaterial, TalkQuery } from "~/types";
2525
import { ParticipantInfoSection } from "../participant-info-section";
2626
import { EventTag } from "./event-tag";
2727
import { Sidebar } from "./sidebar";
2828

29+
type Speaker = Omit<
30+
TalkQuery["conference"]["talk"]["speakers"][0],
31+
"__typename"
32+
>;
33+
2934
type Props = {
3035
id?: string;
3136
slug?: string;
3237
type: string;
3338
eventTitle: string;
3439
elevatorPitch?: string;
3540
abstract?: string;
36-
speakers: {
37-
fullName: string;
38-
participant?: TalkQueryResult["data"]["conference"]["talk"]["speakers"][0]["participant"];
39-
}[];
41+
speakers?: Speaker[];
4042
tags?: string[];
4143
language: string;
4244
audienceLevel?: string;

frontend/src/components/schedule-view/events.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const ScheduleEntry = ({
101101
item.language.code === "en" ? "talk.language.en" : "talk.language.it",
102102
);
103103
const isCustomItem = item.type === "custom" || item.type === "break";
104-
const speakersNames = item.speakers.map((s) => s.fullName).join(", ");
104+
const speakersNames = item.speakers.map((s) => s.fullname).join(", ");
105105
const allRoomsText = useTranslatedMessage("scheduleView.allRooms");
106106

107107
const roomText =
@@ -253,9 +253,9 @@ export const ScheduleEntry = ({
253253
<AvatarGroup>
254254
{item.speakers.map((speaker) => (
255255
<Avatar
256-
key={speaker.fullName}
256+
key={speaker.fullname}
257257
image={speaker.participant?.photo}
258-
letter={speaker.fullName}
258+
letter={speaker.fullname}
259259
letterBackgroundColor={getAvatarBackgroundColor(
260260
Number.parseInt(item.id, 10),
261261
)}

frontend/src/components/submission/submission.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ query Submission($id: ID!, $language: String!) {
3232
id
3333
fullName
3434
participant {
35+
id
3536
photo
3637
bio
3738
twitterHandle

frontend/src/helpers/get-color-for-submission.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
import type { Keynote, Submission } from "~/components/schedule-view/types";
2-
3-
type Item = {
4-
id: string;
5-
submission?: Submission | null;
6-
keynote?: Keynote | null;
7-
audienceLevel?: { name: string } | null;
8-
};
1+
import type { Item } from "~/components/schedule-view/types";
92

103
const COLOR_MAP = {
114
beginner: "blue",

0 commit comments

Comments
 (0)