Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added citizen location link #263

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions ui/pages/citizen/[tokenIdOrName].tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//Citizen Profile
import {
GlobeAltIcon,
GlobeAmericasIcon,
MapPinIcon,
PencilIcon,
} from '@heroicons/react/24/outline'
Expand Down Expand Up @@ -308,14 +307,18 @@ export default function CitizenDetailPage({
<Address address={isGuest ? address : nft.owner} />
</div>

<div className="mt-2 flex items-center gap-2 lg:ml-5">
<MapPinIcon
width={30}
height={30}
className="flex-shrink-0"
/>
<p className="font-GoodTimes">{location}</p>
</div>
{location !== '' && (
<div className="mt-2 flex items-center gap-2 lg:ml-5">
<MapPinIcon
width={30}
height={30}
className="flex-shrink-0"
/>
<Link className="font-GoodTimes" href="/map">
{location}
</Link>
</div>
)}
</div>
</div>
</div>
Expand Down
Loading