Skip to content

Commit dec0820

Browse files
committed
Update next
1 parent 60c22d8 commit dec0820

File tree

7 files changed

+3343
-1325
lines changed

7 files changed

+3343
-1325
lines changed

governance/xc_admin/packages/xc_admin_frontend/components/common/SocialLinks.tsx

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,43 @@ import Youtube from '@images/icons/youtube.inline.svg'
99
const SocialLinks = () => {
1010
return (
1111
<div className="flex items-center">
12-
<Link href="https://twitter.com/PythNetwork">
13-
<a target="_blank" className="mr-6">
14-
<Twitter />
15-
</a>
12+
<Link
13+
href="https://twitter.com/PythNetwork"
14+
target="_blank"
15+
className="mr-6"
16+
>
17+
<Twitter />
1618
</Link>
17-
<Link href="https://discord.gg/invite/PythNetwork">
18-
<a target="_blank" className="mr-6">
19-
<Discord />
20-
</a>
19+
<Link
20+
href="https://discord.gg/invite/PythNetwork"
21+
target="_blank"
22+
className="mr-6"
23+
>
24+
<Discord />
2125
</Link>
22-
<Link href="https://t.me/Pyth_Network">
23-
<a target="_blank" className="mr-6">
24-
<Telegram />
25-
</a>
26+
<Link href="https://t.me/Pyth_Network" target="_blank" className="mr-6">
27+
<Telegram />
2628
</Link>
27-
<Link href="https://www.linkedin.com/company/pyth-network">
28-
<a target="_blank" className="mr-6">
29-
<LinkedIn />
30-
</a>
29+
<Link
30+
href="https://www.linkedin.com/company/pyth-network"
31+
target="_blank"
32+
className="mr-6"
33+
>
34+
<LinkedIn />
3135
</Link>
32-
<Link href="https://github.com/pyth-network">
33-
<a target="_blank" className="mr-6">
34-
<Github />
35-
</a>
36+
<Link
37+
href="https://github.com/pyth-network"
38+
target="_blank"
39+
className="mr-6"
40+
>
41+
<Github />
3642
</Link>
37-
<Link href="https://www.youtube.com/@pythnetwork">
38-
<a target="_blank" className="">
39-
<Youtube />
40-
</a>
43+
<Link
44+
href="https://www.youtube.com/@pythnetwork"
45+
target="_blank"
46+
className=""
47+
>
48+
<Youtube />
4149
</Link>
4250
</div>
4351
)

governance/xc_admin/packages/xc_admin_frontend/components/layout/Footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const Footer = () => {
99
© 2024 Pyth Data Association
1010
</span>
1111
<div className="py-10 lg:py-0">
12-
<Link href="https://pyth.network/">
13-
<a target="_blank">Pyth Network</a>
12+
<Link href="https://pyth.network/" target="_blank">
13+
Pyth Network
1414
</Link>{' '}
1515
</div>
1616
<SocialLinks />

governance/xc_admin/packages/xc_admin_frontend/components/layout/Header.tsx

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,20 @@ const Header = () => {
7373
<>
7474
<header
7575
className={`left-0 top-0 z-40 w-full px-1 transition-all lg:px-10
76-
${isSticky || headerState.opened ? 'fixed' : 'absolute'}
77-
${isSticky && !headerState.opened ? 'bg-darkGray shadow-black' : ''}
78-
`}
76+
${isSticky || headerState.opened ? 'fixed' : 'absolute'}
77+
${isSticky && !headerState.opened ? 'bg-darkGray shadow-black' : ''}
78+
`}
7979
>
8080
<div
8181
className={`relative flex items-center justify-between ${
8282
isSticky ? 'lg:py-4' : 'before:gradient-border md:py-6'
8383
} px-4 py-3 lg:px-10 lg:py-6`}
8484
>
85-
<Link href="/">
86-
<a
87-
className={`flex min-h-[45px] basis-[180px] cursor-pointer items-center`}
88-
>
89-
<Pyth />
90-
</a>
85+
<Link
86+
href="/"
87+
className={`flex min-h-[45px] basis-[180px] cursor-pointer items-center`}
88+
>
89+
<Pyth />
9190
</Link>
9291
<nav>
9392
<ul
@@ -97,16 +96,15 @@ const Header = () => {
9796
>
9897
{navigation.map((item) => (
9998
<li key={item.name}>
100-
<Link href={item.href}>
101-
<a
102-
className={
103-
router.pathname == item.href
104-
? 'nav-link font-bold'
105-
: 'nav-link'
106-
}
107-
>
108-
{item.name}
109-
</a>
99+
<Link
100+
href={item.href}
101+
className={
102+
router.pathname == item.href
103+
? 'nav-link font-bold'
104+
: 'nav-link'
105+
}
106+
>
107+
{item.name}
110108
</Link>
111109
</li>
112110
))}
@@ -124,7 +122,7 @@ const Header = () => {
124122
? 'relative top-0 right-5 left-0 basis-7'
125123
: 'lg:hidden'
126124
}
127-
`}
125+
`}
128126
onClick={handleToggleMenu}
129127
>
130128
<button

governance/xc_admin/packages/xc_admin_frontend/components/layout/MobileMenu.tsx

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,25 +59,22 @@ const MobileMenu = ({ headerState }: MenuProps) => {
5959
<Image
6060
src={orb}
6161
alt=""
62-
layout="fill"
63-
objectFit="cover"
64-
objectPosition="bottom center"
62+
className="w-full h-full object-cover object-bottom"
6563
/>
6664
<div className="sm:after:gradient-border relative flex px-14 pt-16 sm:flex-1 sm:items-center md:px-28 ">
6765
<div className="grid w-full sm:grid-cols-2">
6866
<ul className="list-none pt-5 sm:pt-10">
6967
{navigation.map((item) => (
7068
<li key={item.name} className="mb-5 sm:mb-10">
71-
<Link href={item.href}>
72-
<a
73-
target={item.target}
74-
className=" inline-block font-body text-4xl leading-none tracking-wide transition-colors hover:text-white"
75-
aria-current={
76-
router.pathname === item.href ? 'page' : undefined
77-
}
78-
>
79-
{item.name}
80-
</a>
69+
<Link
70+
href={item.href}
71+
target={item.target}
72+
className=" inline-block font-body text-4xl leading-none tracking-wide transition-colors hover:text-white"
73+
aria-current={
74+
router.pathname === item.href ? 'page' : undefined
75+
}
76+
>
77+
{item.name}
8178
</Link>
8279
</li>
8380
))}

governance/xc_admin/packages/xc_admin_frontend/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const nextConfig = {
1010
config.experiments = { asyncWebAssembly: true }
1111
config.resolve.fallback = { fs: false }
1212
const fileLoaderRule = config.module.rules.find(
13-
(rule) => rule.test && rule.test.test('.svg')
13+
(rule) => rule.test && rule.test?.test?.('.svg')
1414
)
1515
fileLoaderRule.exclude = /\.inline\.svg$/
1616
config.module.rules.push({

governance/xc_admin/packages/xc_admin_frontend/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,27 @@
2424
"@solana/web3.js": "^1.73.0",
2525
"@sqds/mesh": "^1.0.6",
2626
"@tanstack/react-table": "^8.7.6",
27-
"@types/node": "^18.11.18",
28-
"@types/react": "^18.0.26",
29-
"@types/react-dom": "^18.0.10",
3027
"axios": "^1.4.0",
3128
"copy-to-clipboard": "^3.3.3",
3229
"gsap": "^3.11.4",
3330
"message_buffer": "workspace:^",
34-
"next": "12.2.5",
31+
"next": "^14.2.3",
3532
"next-seo": "^5.15.0",
36-
"react": "18.2.0",
37-
"react-dom": "18.2.0",
33+
"react": "^18.3.1",
34+
"react-dom": "^18.3.1",
3835
"react-hot-toast": "^2.4.0",
3936
"use-debounce": "^9.0.2",
4037
"web3": "^4.8.0"
4138
},
4239
"devDependencies": {
4340
"@svgr/webpack": "^6.3.1",
41+
"@types/node": "^18.11.18",
42+
"@types/react": "^18.3.3",
43+
"@types/react-dom": "^18.3.0",
4444
"@typescript-eslint/eslint-plugin": "^7.7.0",
4545
"autoprefixer": "^10.4.8",
4646
"eslint": "8.56.0",
47-
"eslint-config-next": "^12.2.5",
47+
"eslint-config-next": "^14.2.3",
4848
"postcss": "^8.4.16",
4949
"prettier": "^2.7.1",
5050
"prettier-plugin-tailwindcss": "^0.1.13",

0 commit comments

Comments
 (0)