Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlivino committed Sep 11, 2024
1 parent 49cb969 commit bd69610
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/api/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export type TalkCategory = "Convida" | "Frontend" | "Comunidades";
export type TalkCategory = "fendce" | "w3c" | "firebank" | "convida";

export type Room = "fendce" | "w3c" | "firebank" | "convida";

export interface Agenda extends Record<Room, Palestra[]> {}
export interface Agenda extends Record<TalkCategory, Palestra[]> {
[type: string]: Palestra[];
}

export interface Palestra {
speaker: Speaker;
Expand Down
4 changes: 0 additions & 4 deletions src/components/SpeakerSection/SpeakerSection.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const meta: Meta<typeof SpeakerSection> = {
handleCardModeChange: { action: "handleCardModeChange" },
liveTalk: { control: "object" },
savedCardIds: { control: undefined },
sectionTitle: { control: "text" },
},
} satisfies Meta<typeof SpeakerSection>;

Expand All @@ -36,7 +35,6 @@ export const FrontEndCE: Story = {
},
},
savedCardIds: [],
sectionTitle: "Front-End CE",
},
};

Expand All @@ -59,7 +57,6 @@ export const Comunidade: Story = {
},
},
savedCardIds: [],
sectionTitle: "Comunidade",
},
};

Expand All @@ -82,6 +79,5 @@ export const Convida: Story = {
},
},
savedCardIds: [],
sectionTitle: "Convida",
},
};
4 changes: 2 additions & 2 deletions src/components/SpeakerSection/SpeakerSection.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test('renders SpeakerComponent', () => {
id: 1,
},
};
const { getByText } = render(<SpeakerSection handleCardModeChange={() => {}} liveTalk={liveTalk} savedCardIds={[]} sectionTitle="Test Section" />);
const element = getByText(/Test Section/i);
const { getByText } = render(<SpeakerSection handleCardModeChange={() => { }} liveTalk={liveTalk} savedCardIds={[]} />);
const element = getByText(/Test Talk/i);
expect(element).toBeInTheDocument();
});

0 comments on commit bd69610

Please sign in to comment.