From 05480dae202976d9e97049e2e5b848e8321bbc54 Mon Sep 17 00:00:00 2001 From: Adam Jackson <akjackson1@gmail.com> Date: Wed, 11 Oct 2023 14:41:03 -0400 Subject: [PATCH] Update [locationId].tsx --- pages/hotspot/[locationId].tsx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pages/hotspot/[locationId].tsx b/pages/hotspot/[locationId].tsx index 5eb1e44..b4f3191 100644 --- a/pages/hotspot/[locationId].tsx +++ b/pages/hotspot/[locationId].tsx @@ -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} />} @@ -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>}