Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { useIsStakable } from "./hooks/useIsStakable";
import { useDonationPeriod } from "./hooks/useDonationPeriod";
import { StakingButton } from "./StakingButton";
import { StakingCountDownLabel } from "./StakingCountDownLabel";
import { Button } from "../../../../collections/CollectionDetails";
import { ArrowTopRightOnSquareIcon } from "@heroicons/react/20/solid";

const STAKING_APP_URL = process.env.REACT_APP_STAKING_APP;

Expand Down Expand Up @@ -109,7 +111,26 @@ export const StakingBannerAndModal = ({
return (
<div className="mt-2 mb-6">
<StakingBanner isRoundView={isRoundView}>
<StakingButton onClick={handleOpenModal} isRoundView={isRoundView} />
<div className="flex items-center gap-2">
<StakingButton
onClick={handleOpenModal}
isRoundView={isRoundView}
/>
{isRoundView && (
<Button
onClick={() => {
window.open(
"https://dashboard.boost.explorer.gitcoin.co/about-explorer-boost",
"_blank"
);
}}
className="text-black text-sm font-mono font-medium px-4 py-2 leading-normal rounded-lg inline-flex justify-center items-center gap-2 bg-transparent hover:bg-transparent"
>
Learn more
<ArrowTopRightOnSquareIcon className="w-4 h-4" />
</Button>
)}
</div>
</StakingBanner>
<StakingModal
isOpen={isOpen}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const StakingButton = ({
}) => {
return (
<Button
className={`text-white max-h-[40px] font-mono whitespace-nowrap text-[14px]/[24px] ${isClaimPeriod ? "bg-[#5C35CC]" : "bg-[#22635A]"}`}
className={`text-white text-sm font-medium px-4 py-2 leading-normal rounded-lg inline-flex justify-center items-center gap-2 font-mono ${isClaimPeriod ? "bg-[#5C35CC]" : "bg-[#22635A]"}`}
onClick={onClick}
>
{isClaimPeriod
Expand Down