Skip to content

Commit

Permalink
wire in view application
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Nov 28, 2024
1 parent 4876c47 commit 10afeb0
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions packages/builder/src/components/grants/ApplicationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,18 @@ export default function ApplicationCard({
return null;
}

const applicationStartTime = new Date(props.round.applicationsStartTime);
const showCheckerLink =
applicationStartTime >= new Date("2024-12-01T00:00:00Z");

const applicationViewLink = showCheckerLink
? `https://beta.checker.gitcoin.co/view/application/${applicationData.chainId}-${applicationData.roundID}-${applicationData.application.id}`
: roundApplicationViewPath(
applicationData.chainId.toString(),
applicationData.roundID,
applicationData.application.metadataCid || ""
);

return (
<Box
p={2}
Expand Down Expand Up @@ -241,13 +253,7 @@ export default function ApplicationCard({
</a>
</p>
)}
<Link
to={roundApplicationViewPath(
applicationData.chainId.toString(),
applicationData.roundID,
applicationData.application.metadataCid || ""
)}
>
<Link to={applicationViewLink} target="_blank">
<Button
backgroundColor="purple.100"
color="purple.600"
Expand Down

0 comments on commit 10afeb0

Please sign in to comment.