Skip to content

Commit

Permalink
feat: add location to schedule (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
njhuey authored Jan 27, 2024
1 parent 6db54e9 commit 9a1d8e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/site/src/app/(main)/schedule/components/EventCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default function EventCard({
now,
title,
eventType,
location,
virtual,
startTime,
endTime,
Expand Down Expand Up @@ -39,6 +40,7 @@ export default function EventCard({
now={now}
title={title}
eventType={eventType}
location={location}
virtual={virtual}
startTime={startTime}
endTime={endTime}
Expand Down
2 changes: 2 additions & 0 deletions apps/site/src/app/(main)/schedule/components/EventRegular.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default function EventRegular({
now,
title,
eventType,
location,
virtual,
startTime,
endTime,
Expand All @@ -97,6 +98,7 @@ export default function EventRegular({
{organization === undefined ? hosts?.join(", ") : organization}
</p>
)}
{location !== undefined && <p className="mb-2">Location: {location}</p>}
<p className="mb-2">
{dateTimeFormat.formatRange(startTimeInPST, endTimeInPST)} PST{" "}
{virtual && <a href={virtual}>| Meeting Link</a>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface ScheduleProps {
schedule: {
title: string;
eventType: string;
location?: string | undefined;
location?: string;
virtual?: string | undefined;
startTime: Date;
endTime: Date;
Expand Down

0 comments on commit 9a1d8e1

Please sign in to comment.