Skip to content

Commit

Permalink
Merge pull request #313 from adrianvrj/dev
Browse files Browse the repository at this point in the history
[fix] general format updates for mainnet
  • Loading branch information
adrianvrj authored Dec 20, 2024
2 parents 512c2f9 + 811e1d8 commit f53887e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 18 deletions.
20 changes: 11 additions & 9 deletions frontend/gostarkme-web/components/modules/Fund/Fund.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const Fund = () => {

useEffect(() => {
getDetails();
}, []);
});

return (
<>
Expand Down Expand Up @@ -110,13 +110,13 @@ const Fund = () => {
)}
{Number(fund.state) === 2 && (
<>
<FundDonate
currentBalance={fund.currentBalance}
goal={fund.goal}
addr={fund.addr}
name={fund.name}
icon={starknetlogo}
/>
<FundDonate
currentBalance={fund.currentBalance}
goal={fund.goal}
addr={fund.addr}
name={fund.name}
icon={starknetlogo}
/>
</>
)}
{Number(fund.state) === 3 && isOwner && (
Expand All @@ -129,7 +129,9 @@ const Fund = () => {
/>
)}
{Number(fund.state) === 3 && !isOwner && (
<p>Funds are ready for withdrawal by the owner.</p>
<p className="mt-10 self-center text-xl text-gray-500">
The goal has been reached and funds are ready to be withdrawn by the owner.
</p>
)}
{Number(fund.state) === 4 && <p>Fund was already withdrawn.</p>}
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const FundDonate = ({ currentBalance, goal, addr, name, icon }: FundDonateProps)
</svg>
</button>
<h1 className="text-xl">Success</h1>
<p className="text-l font-light m-5">Your donation was received, take a look at the transaction <a className="text-blue-600" target="_blank" href={"https://sepolia.voyager.online/tx/" + latestTx}>here.</a></p>
<p className="text-l font-light m-5">Your donation was received, take a look at the transaction <a className="text-blue-600" target="_blank" href={"https://voyager.online/tx/" + latestTx}>here.</a></p>
<p className="text-l font-light m-5">Share your contribution via X to tell everyone how cool you are</p>
<ShareXButton message={donationMessage} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const FundVote = ({ name, upVotes, upVotesNeeded, addr, voted, setLoading
</svg>
</button>
<h1 className="text-xl">Success</h1>
<p className="text-l font-light m-5">Your vote was submitted, take a look at the transaction <a className="text-blue-600" target="_blank" href={"https://sepolia.voyager.online/tx/" + latestTx}>here.</a></p>
<p className="text-l font-light m-5">Your vote was submitted, take a look at the transaction <a className="text-blue-600" target="_blank" href={"https://voyager.online/tx/" + latestTx}>here.</a></p>
<p className="text-l font-light m-5">Share your contribution via X to tell everyone how cool you are</p>
<ShareXButton message={voteMessage} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const CreationConfirmation: React.FC<CreationConfirmationProps> = ({
}) => (
<>
<div className="flex flex-col items-center justify-center gap-4 text-center">
<p className="text-2xl font-light m-5">Your funding was created, take a look at the transaction <a className="text-blue-600" target="_blank" href={"https://sepolia.voyager.online/tx/" + txHash}>here.</a></p>
<p className="text-2xl font-light m-5">Your funding was created, take a look at the transaction <a className="text-blue-600" target="_blank" href={"https://voyager.online/tx/" + txHash}>here.</a></p>
<p className="text-2xl font-light m-5">Share your contribution via X to tell everyone how cool you are</p>
<ShareXButton message={message} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const WithdrawConfirmation: React.FC<WithdrawConfirmationProps> = ({
}) => (
<>
<div className="flex flex-col items-center justify-center gap-4 text-center">
<p className="text-2xl font-light m-5">🎉 Success! Your funds have been withdrawn. Check out the transaction details and celebrate! 💸✨ <a className="text-blue-600" target="_blank" href={"https://sepolia.voyager.online/tx/" + txHash}>here.</a></p>
<p className="text-2xl font-light m-5">🎉 Success! Your funds have been withdrawn. Check out the transaction details and celebrate! 💸✨ <a className="text-blue-600" target="_blank" href={"https://voyager.online/tx/" + txHash}>here.</a></p>
<p className="text-2xl font-light m-5">Goal Achieved! Your funds have been withdrawn, and the campaign is a success! Share your contribution on X and let everyone know how awesome you are!</p>
<ShareXButton message={message} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ const DescriptionStep: React.FC<DescriptionStepProps> = ({
href=""
className="absolute right-[-270px] top-[-205px]"
>
<img
src="/icons/arrow-right.png"
alt="Back Arrow"
className="h-8 w-8"
/>
</a>
</div>
);
Expand Down

0 comments on commit f53887e

Please sign in to comment.