Skip to content

Commit f7d528c

Browse files
authored
Feat/add learn more about staking btn (#3821)
* feat: adds learn more btn in the staking banner * chore: staking-btn minor improvements
1 parent 80e24ec commit f7d528c

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

packages/grant-explorer/src/features/round/ViewProjectDetails/components/StakingBannerAndModal/StakingBannerAndModal.tsx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { useIsStakable } from "./hooks/useIsStakable";
66
import { useDonationPeriod } from "./hooks/useDonationPeriod";
77
import { StakingButton } from "./StakingButton";
88
import { StakingCountDownLabel } from "./StakingCountDownLabel";
9+
import { Button } from "../../../../collections/CollectionDetails";
10+
import { ArrowTopRightOnSquareIcon } from "@heroicons/react/20/solid";
911

1012
const STAKING_APP_URL = process.env.REACT_APP_STAKING_APP;
1113

@@ -109,7 +111,26 @@ export const StakingBannerAndModal = ({
109111
return (
110112
<div className="mt-2 mb-6">
111113
<StakingBanner isRoundView={isRoundView}>
112-
<StakingButton onClick={handleOpenModal} isRoundView={isRoundView} />
114+
<div className="flex items-center gap-2">
115+
<StakingButton
116+
onClick={handleOpenModal}
117+
isRoundView={isRoundView}
118+
/>
119+
{isRoundView && (
120+
<Button
121+
onClick={() => {
122+
window.open(
123+
"https://dashboard.boost.explorer.gitcoin.co/about-explorer-boost",
124+
"_blank"
125+
);
126+
}}
127+
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"
128+
>
129+
Learn more
130+
<ArrowTopRightOnSquareIcon className="w-4 h-4" />
131+
</Button>
132+
)}
133+
</div>
113134
</StakingBanner>
114135
<StakingModal
115136
isOpen={isOpen}

packages/grant-explorer/src/features/round/ViewProjectDetails/components/StakingBannerAndModal/StakingButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const StakingButton = ({
1414
}) => {
1515
return (
1616
<Button
17-
className={`text-white max-h-[40px] font-mono whitespace-nowrap text-[14px]/[24px] ${isClaimPeriod ? "bg-[#5C35CC]" : "bg-[#22635A]"}`}
17+
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]"}`}
1818
onClick={onClick}
1919
>
2020
{isClaimPeriod

0 commit comments

Comments
 (0)