Skip to content

Commit 480f90b

Browse files
authored
Merge pull request #45 from DEVxNetwork/sam/move-location
Move location next to map
2 parents 2269161 + c8e6351 commit 480f90b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

app/events/[eventId]/EventDetailClient.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,6 @@ export default function EventDetailClient() {
164164
<Button href="#registration-form">Attend This Event</Button>
165165
</Header>
166166

167-
{event.location && event.location.type === "physical" && (
168-
<LocationSection>
169-
<SectionTitle>Location</SectionTitle>
170-
<LocationText>{event.location.address}</LocationText>
171-
</LocationSection>
172-
)}
173-
174167
{event.location && event.location.type === "online" && (
175168
<LocationSection>
176169
<SectionTitle>Location</SectionTitle>
@@ -249,6 +242,13 @@ export default function EventDetailClient() {
249242
</RegistrationSection>
250243
)}
251244

245+
{event.location && event.location.type === "physical" && (
246+
<LocationSection>
247+
<SectionTitle>Location</SectionTitle>
248+
<LocationText>{event.location.address}</LocationText>
249+
</LocationSection>
250+
)}
251+
252252
{event.location && event.location.type === "physical" && event.location.coordinates && (
253253
<LocationSection>
254254
<SectionTitle>Map</SectionTitle>

0 commit comments

Comments
 (0)