Skip to content

Commit

Permalink
feat(platforms): updating grants stamp description (passportxyz#2186)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianHymer authored Feb 16, 2024
1 parent b8a5ae7 commit 902e3a4
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 33 deletions.
33 changes: 0 additions & 33 deletions platforms/src/Gitcoin/App-Bindings.ts

This file was deleted.

52 changes: 52 additions & 0 deletions platforms/src/Gitcoin/App-Bindings.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import React from "react";
import { AppContext, PlatformOptions, ProviderPayload } from "../types";
import { Platform } from "../utils/platform";

export class GitcoinPlatform extends Platform {
platformId = "Gitcoin";
path = "Gitcoin";
clientId: string = null;
redirectUri: string = null;
isEVM = true;

banner = {
heading: (
<div>
To qualify for the Gitcoin stamp, your contributions must be made to grant rounds officially funded by Gitcoin.
This includes designated rounds such as Citizens rounds, GG18, GG19, among others, as detailed{" "}
<a
href="https://github.com/ufkhan97/gitcoin-grants-heroku/blob/main/all_rounds.csv"
target="_blank"
rel="noreferrer"
className="underline text-foreground-4"
>
here
</a>
.
</div>
),
content: (
<div>
Please note, contributions to self-serve rounds (those with type{" "}
<span className="text-xs font-alt text-foreground-2">independent</span> in the chart) are not eligible.
Eligibility requires a passing Passport score and adherence to our fraud prevention guidelines. Contributions
are recognized approximately three weeks following the conclusion of an eligible round.
</div>
),
cta: {
label: "Find out more",
url: "https://support.gitcoin.co/gitcoin-knowledge-base/gitcoin-passport/understanding-your-eligibility-for-the-gitcoin-grants-stamp-on-gitcoin-passport",
},
};

constructor(options: PlatformOptions = {}) {
super();
this.clientId = options.clientId as string;
this.redirectUri = options.redirectUri as string;
}

async getProviderPayload(_appContext: AppContext): Promise<ProviderPayload> {
const result = await Promise.resolve({});
return result;
}
}

0 comments on commit 902e3a4

Please sign in to comment.