Skip to content

Commit

Permalink
Show button
Browse files Browse the repository at this point in the history
  • Loading branch information
manishiwa committed Mar 8, 2024
1 parent 94886e2 commit 36fc3b8
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions app/(layout)/chains/[chain]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,24 +238,22 @@ const Chain = ({ params }: { params: any }) => {
<Icon icon="gtp:gtp-block-explorer" className="w-4 h-4" />
<div className="transition-all duration-300 whitespace-nowrap overflow-hidden">Block Explorer</div>
</Link>
{process.env.NEXT_PUBLIC_VERCEL_ENV !== "production" && (
<Link
href={"https://app.rhino.fi/bridge/?refId=PG_GrowThePie"}
className="flex p-[1px] bg-gradient-to-b from-[#FE5468] to-[#FFDF27] rounded-full peer-hover:[&>div>div]:w-[0px] [&>div>div]:w-[45px] peer-hover:[&>div]:gap-x-0"
rel="noreferrer" target="_blank"
onClick={() => {
track("clicked RhinoFi Bridge link", {
location: isMobile ? `mobile Chain page` : `desktop Chain page`,
page: window.location.pathname,
});
}}
>
<div className="flex items-center gap-x-[8px] justify-between font-semibold bg-forest-50 dark:bg-forest-900 rounded-full px-[16px] py-[7px] transition-all duration-300">
<Icon icon="gtp:gtp-bridge" className="w-4 h-4" />
<div className="transition-all duration-300 whitespace-nowrap overflow-hidden">Bridge</div>
</div>
</Link>
)}
<Link
href={"https://app.rhino.fi/bridge/?refId=PG_GrowThePie"}
className="flex p-[1px] bg-gradient-to-b from-[#FE5468] to-[#FFDF27] rounded-full peer-hover:[&>div>div]:w-[0px] [&>div>div]:w-[45px] peer-hover:[&>div]:gap-x-0"
rel="noreferrer" target="_blank"
onClick={() => {
track("clicked RhinoFi Bridge link", {
location: isMobile ? `mobile Chain page` : `desktop Chain page`,
page: window.location.pathname,
});
}}
>
<div className="flex items-center gap-x-[8px] justify-between font-semibold bg-forest-50 dark:bg-forest-900 rounded-full px-[16px] py-[7px] transition-all duration-300">
<Icon icon="gtp:gtp-bridge" className="w-4 h-4" />
<div className="transition-all duration-300 whitespace-nowrap overflow-hidden">Bridge</div>
</div>
</Link>
</div>
</div>
<div className="flex items-center mb-[15px]">
Expand Down

0 comments on commit 36fc3b8

Please sign in to comment.