Skip to content

Commit

Permalink
Update [locationId].tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
rawcomposition committed Oct 11, 2023
1 parent d044993 commit 05480da
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions pages/hotspot/[locationId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,17 @@ export default function Hotspot({

{tips && <AboutSection heading="Tips for Birding" text={tips} />}

{noContent && (
<div className="mb-6 formatted">
<h3 className="font-bold text-lg mb-1.5">About this location</h3>
<div className="p-4 bg-gray-100 rounded-lg mb-6">
If you are familiar with birding this location, please help other birders with a description, tips for
birding, or photos - <Link href={`/hotspot/suggest/${locationId}`}>suggest content</Link> -{" "}
<Link href={`/hotspot/upload/${locationId}`}>upload photos</Link>.
</div>
</div>
)}

{birds && <AboutSection heading="Birds of Interest" text={birds} />}

{about && <AboutSection heading="About this Location" text={about} />}
Expand All @@ -216,16 +227,6 @@ export default function Hotspot({

<Features {...{ fee, accessible, roadside, restrooms }} />

{noContent && (
<div className="mb-6 formatted">
<h3 className="font-bold text-lg mb-1.5">About this location</h3>
<div className="p-4 bg-gray-100 rounded-lg mb-6">
If you are familiar with birding this location, please help other birders with a description, tips for
birding, or photos - <Link href={`/hotspot/suggest/${locationId}`}>suggest content</Link> -{" "}
<Link href={`/hotspot/upload/${locationId}`}>upload photos</Link>.
</div>
</div>
)}
<Citations citations={citations} links={links} />

{updatedAt && <p className="my-6 text-xs">Last updated {dayjs(updatedAt).format("MMMM D, YYYY")}</p>}
Expand Down

1 comment on commit 05480da

@vercel
Copy link

@vercel vercel bot commented on 05480da Oct 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.