From f3f6676f834b4d581dd0aac82c45988a4f045879 Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:55:12 +0700 Subject: [PATCH 1/7] build: nextjs v13 close #301 --- ui/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/package.json b/ui/package.json index 134a40d..fe1d0aa 100644 --- a/ui/package.json +++ b/ui/package.json @@ -20,7 +20,7 @@ "@types/react-dom": "^18.0.4", "daisyui": "^2.13.5", "ethers": "^5.7.1", - "next": "12.1.0", + "next": "13", "nft.storage": "^7.1.1", "react": "17.0.2", "react-animated-3d-card": "^1.0.2", @@ -39,7 +39,7 @@ "autoprefixer": "^10.4.0", "cypress": "^11", "eslint": "8.57.0", - "eslint-config-next": "14.2.4", + "eslint-config-next": "13", "eslint-config-prettier": "^9.1.0", "jest": "^28.1.3", "postcss": "^8.4.38", From 264e4079971ef8a13af8e6763e86da7964af4ba6 Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:57:55 +0700 Subject: [PATCH 2/7] build: react v18 --- ui/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/package.json b/ui/package.json index fe1d0aa..c8cb28c 100644 --- a/ui/package.json +++ b/ui/package.json @@ -22,11 +22,11 @@ "ethers": "^5.7.1", "next": "13", "nft.storage": "^7.1.1", - "react": "17.0.2", + "react": "^18.3.1", "react-animated-3d-card": "^1.0.2", "react-blockies": "^1.4.1", "react-confetti": "^6.0.1", - "react-dom": "17.0.2", + "react-dom": "^18.3.1", "react-use": "^17.5.0", "typescript": "^4.7.4", "use-nft": "^0.12.0", From 30f2822ae12fa3c1f80631fec595dd39de18545d Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Thu, 22 Aug 2024 13:05:45 +0700 Subject: [PATCH 3/7] build: nextjs v13 image component --- ui/components/Layout.tsx | 5 +++-- ui/pages/citizen.tsx | 8 ++++---- ui/pages/index.tsx | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ui/components/Layout.tsx b/ui/components/Layout.tsx index a37f759..ce7e011 100644 --- a/ui/components/Layout.tsx +++ b/ui/components/Layout.tsx @@ -126,7 +126,7 @@ export default function Layout({ children }: any) {
@@ -165,7 +165,7 @@ export default function Layout({ children }: any) { -From fb5ef8fcadfd7f547e33182278c695b9b055acc0 Mon Sep 17 00:00:00 2001 From: Aahna Ashina <95955389+aahna-ashina@users.noreply.github.com> Date: Thu, 22 Aug 2024 13:25:14 +0700 Subject: [PATCH 4/7] build: nextjs v13 link component --- ui/components/GradientLink.tsx | 25 ++++--------------------- ui/components/Layout.tsx | 34 ++++++++++++---------------------- 2 files changed, 16 insertions(+), 43 deletions(-) diff --git a/ui/components/GradientLink.tsx b/ui/components/GradientLink.tsx index 24b431b..529b89f 100644 --- a/ui/components/GradientLink.tsx +++ b/ui/components/GradientLink.tsx @@ -2,26 +2,9 @@ import Link from 'next/link' import React from 'react' export default function GradientLink({ text, href, textSize }: any) { - if (href?.charAt(0) === '/') { - return ( - - - {text} → - - - ) - } else { - return ( - + return ( + {text} → - - ) - } + + ) } diff --git a/ui/components/Layout.tsx b/ui/components/Layout.tsx index ce7e011..2d77320 100644 --- a/ui/components/Layout.tsx +++ b/ui/components/Layout.tsx @@ -125,9 +125,7 @@ export default function Layout({ children }: any) {