From 796d0dd5d031a4bdcfbc562bbf940004386154f1 Mon Sep 17 00:00:00 2001
From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com>
Date: Tue, 19 Sep 2023 12:20:10 +0700
Subject: [PATCH] feat: link github username (#22)
---
src/components/ProfileDetailsGitHub.tsx | 4 ++--
src/pages/[passportId].tsx | 8 ++++++++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/components/ProfileDetailsGitHub.tsx b/src/components/ProfileDetailsGitHub.tsx
index fd2be7d..15582da 100644
--- a/src/components/ProfileDetailsGitHub.tsx
+++ b/src/components/ProfileDetailsGitHub.tsx
@@ -29,8 +29,8 @@ export default function ProfileDetailsGitHub({ address }: any) {
return (
<>
Not linked
-
- Update ↗
+
+ Link 🔗
>
)
diff --git a/src/pages/[passportId].tsx b/src/pages/[passportId].tsx
index a4df2d1..4fea7ef 100644
--- a/src/pages/[passportId].tsx
+++ b/src/pages/[passportId].tsx
@@ -14,6 +14,7 @@ import dynamic from 'next/dynamic'
import VeNationLockDetails from '@/components/VeNationLockDetails'
import ProfileDetailsGitHub from '@/components/ProfileDetailsGitHub'
import Link from 'next/link'
+import Head from 'next/head'
const Chart = dynamic(() => import('react-apexcharts'), { ssr: false })
export default function ProfilePage({ citizen, nationCred, veNation, dework, sourceCred }: any) {
@@ -23,6 +24,13 @@ export default function ProfilePage({ citizen, nationCred, veNation, dework, sou
return (
<>
+ {!router.isFallback && (
+