forked from passportxyz/passport
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(platforms): updating grants stamp description (passportxyz#2186)
- Loading branch information
1 parent
b8a5ae7
commit 902e3a4
Showing
2 changed files
with
52 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |