From a39c9b68a9b1a1c6a056d2ad162d8a533fde8578 Mon Sep 17 00:00:00 2001 From: lassejaco Date: Tue, 9 Apr 2024 10:19:30 +0200 Subject: [PATCH] basic app --- .../src/components/domain/app/navigation/BottomNav.tsx | 10 +++++----- .../components/domain/app/speakers/SpeakerDetails.tsx | 3 ++- devcon-app/src/services/event-data.ts | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/devcon-app/src/components/domain/app/navigation/BottomNav.tsx b/devcon-app/src/components/domain/app/navigation/BottomNav.tsx index 41933df9c..7d4adc663 100644 --- a/devcon-app/src/components/domain/app/navigation/BottomNav.tsx +++ b/devcon-app/src/components/domain/app/navigation/BottomNav.tsx @@ -39,11 +39,11 @@ const navItems = [ icon: IconPin, to: '/venue', }, - { - title: 'Info', - icon: IconInfo, - to: '/info', - }, + // { + // title: 'Info', + // icon: IconInfo, + // to: '/info', + // }, ] as NavLinkWithIcon[] export const BottomNav = () => { diff --git a/devcon-app/src/components/domain/app/speakers/SpeakerDetails.tsx b/devcon-app/src/components/domain/app/speakers/SpeakerDetails.tsx index 0e29c47c1..f05a7197a 100644 --- a/devcon-app/src/components/domain/app/speakers/SpeakerDetails.tsx +++ b/devcon-app/src/components/domain/app/speakers/SpeakerDetails.tsx @@ -61,7 +61,8 @@ export const SpeakerDetails = (props: any) => { // src={props.speaker.avatar ?? makeBlockie(props.speaker.name || props.speaker.id)} src={makeBlockie(props.speaker.name || props.speaker.id)} alt={props.speaker.name} - layout="fill" + className="object-contain" + fill /> diff --git a/devcon-app/src/services/event-data.ts b/devcon-app/src/services/event-data.ts index 728b5b7cd..6c19b5f91 100644 --- a/devcon-app/src/services/event-data.ts +++ b/devcon-app/src/services/event-data.ts @@ -107,7 +107,7 @@ export const fetchSessions = async (): Promise => { export const fetchSpeakers = async (): Promise => { const sessions = await fetchSessions() - const speakersData = await get(`/speakers`); // await get(`/events/${eventName}/speakers`) + const speakersData = await get(`/speakers?size=1100`); // await get(`/events/${eventName}/speakers`) // TODO: This needs to be filtered down to match the speakers at Devcon 7 const speakers = speakersData.map((i: any) => { const speakerSessions = sessions.filter((session: SessionType) => session.speakers.some((speaker) => i.id === speaker.id)) const organization = i.answers?.filter((i: any) => i.question.id === organizationQuestionId).reverse()[0]?.answer