first view links

This commit is contained in:
Sewmina 2025-04-20 00:46:34 +00:00
parent 2383730d0f
commit e9594a754a

View File

@ -1,4 +1,5 @@
import { useEffect, useState } from "react";
import { URL_WHITEPAPER, URL_TELEGRAM } from "../shared/constants";
interface FirstVisitModalProps {
isOpen: boolean;
@ -43,14 +44,14 @@ export function FirstVisitModal({ isOpen, onClose }: FirstVisitModalProps) {
</p>
{[
{ step: "New here? Check out our", desc: "Whitepaper to understand how everything works." },
{ step: "Got questions or just wanna vibe with the squad?", desc: "Join our Telegram." },
].map(({ step, desc }, index) => (
<div key={index}>
{ step: "New here? Check out our", desc: "Whitepaper to understand how everything works.", link: URL_WHITEPAPER },
{ step: "Got questions or just wanna vibe with the squad?", desc: "Join our Telegram.", link: URL_TELEGRAM },
].map(({ step, desc, link }, index) => (
<div key={index} onClick={() => window.open(link, "_blank")}>
<h3 className="text-[rgb(248,144,22)] font-bold text-lg">
{step}
</h3>
<p className="text-s text-gray-400">{desc}</p>
<p className="text-s text-white font-bold ">{desc}</p>
</div>
))}
</div>