Skip to content

Commit

Permalink
basic app
Browse files Browse the repository at this point in the history
  • Loading branch information
lassejaco committed Apr 9, 2024
1 parent ca7f40b commit a39c9b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions devcon-app/src/components/domain/app/navigation/BottomNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
/>
</div>

Expand Down
2 changes: 1 addition & 1 deletion devcon-app/src/services/event-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const fetchSessions = async (): Promise<SessionType[]> => {

export const fetchSpeakers = async (): Promise<Speaker[]> => {
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
Expand Down

0 comments on commit a39c9b6

Please sign in to comment.