-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a24f7e6
commit 73879f5
Showing
11 changed files
with
162 additions
and
93 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
export type SessionProps = { | ||
speakerId: number; | ||
title: string; | ||
description: string; | ||
lang: string; | ||
track: string; | ||
room: string; | ||
start: string; | ||
end: string; | ||
tags: string[]; | ||
speakers: number[]; | ||
eventUrl?: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
'use client'; | ||
|
||
import { PersonProps } from "@/components/Person/PersonProps"; | ||
import PersonPopIn from "@/components/Person/PersonPopIn"; | ||
import useDataProvider from "@/hooks/useDataProvider"; | ||
import Session from "@/components/Speakers/Session/Session"; | ||
|
||
interface SpeakerPopInProps { | ||
selectedSpeaker: PersonProps; | ||
isOpen: boolean; | ||
onClose: () => void; | ||
} | ||
|
||
const SpeakerPopIn = ({ | ||
isOpen, | ||
onClose, | ||
selectedSpeaker | ||
}: SpeakerPopInProps) => { | ||
const dataProvider = useDataProvider(); | ||
const sessions = dataProvider.useSessions(selectedSpeaker.id); | ||
|
||
return ( | ||
<PersonPopIn | ||
isOpen={isOpen} | ||
onClose={onClose} | ||
selectedPerson={selectedSpeaker} | ||
> | ||
{sessions.map((session, index) => ( | ||
<Session session={session} key={index} /> | ||
))}; | ||
</PersonPopIn> | ||
); | ||
}; | ||
|
||
export default SpeakerPopIn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters