Skip to content

Commit 539b86b

Browse files
authored
Add SCR (#1534)
1 parent 8086fa7 commit 539b86b

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/app/_components/Portal/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,17 @@ import { Fragment, useState } from "react"
55

66
import { Box, Container, Typography } from "@mui/material"
77

8-
import GetSCRDialog from "@/app/SCR-sSCR/Header/GetSCRDialog"
98
import Bridge from "@/assets/svgs/landingpage/bridge.svg"
109
import Doc from "@/assets/svgs/landingpage/doc.svg"
1110
import Ecosystem from "@/assets/svgs/landingpage/ecosystem.svg"
11+
import Governance from "@/assets/svgs/landingpage/governance.svg"
1212
import Levelup from "@/assets/svgs/landingpage/levelup.svg"
1313
import ScrollOpen from "@/assets/svgs/landingpage/scroll-open.svg"
14-
import Sessions from "@/assets/svgs/landingpage/sessions.svg"
1514
import { BRIDGE_URL, DOC_URL, ECOSYSTEM_URL, LEVEL_UP_URL, SCROLL_OPEN_URL } from "@/constants/link"
1615

1716
import PortalCard from "./PortalCard"
1817

1918
const Portal = () => {
20-
const [getSCROpen, setGetSCROpen] = useState(false)
2119
const BUILDER_LIST = [
2220
{
2321
title: "For builders",
@@ -32,7 +30,12 @@ const Portal = () => {
3230
items: [
3331
{ icon: Bridge, label: "Bridge", content: "Deposit your assets to Scroll", href: BRIDGE_URL },
3432
{ icon: Ecosystem, label: "Projects", content: "Explore the dApps on Scroll", href: ECOSYSTEM_URL },
35-
{ icon: Sessions, label: "Get SCR", content: "Vote or propose on Scroll", onClick: () => setGetSCROpen(true) },
33+
{
34+
icon: Governance,
35+
label: "SCR",
36+
content: "Vote or propose on Scroll",
37+
onClick: () => (window.location.href = "https://portal.scroll.io/scr"),
38+
},
3639
],
3740
},
3841
]
@@ -73,7 +76,6 @@ const Portal = () => {
7376
</Fragment>
7477
))}
7578
<Box></Box>
76-
<GetSCRDialog open={getSCROpen} onClose={() => setGetSCROpen(false)} />
7779
</Container>
7880
</Box>
7981
)
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)