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): adding more info to Civic sidebar (passportxyz#2223)
* feat(platforms): adding more info to Civic sidebar * commit
- Loading branch information
1 parent
1b42bcb
commit 3083d1f
Showing
2 changed files
with
48 additions
and
30 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,48 @@ | ||
import React from "react"; | ||
import { AppContext, PlatformOptions, ProviderPayload } from "../types"; | ||
import { Platform } from "../utils/platform"; | ||
|
||
export class CivicPlatform extends Platform { | ||
platformId = "Civic"; | ||
path = "Civic"; | ||
|
||
constructor(options: PlatformOptions = {}) { | ||
super(); | ||
this.state = options.state as string; | ||
this.redirectUri = options.redirectUri as string; | ||
} | ||
|
||
async getProviderPayload(appContext: AppContext): Promise<ProviderPayload> { | ||
const result = await Promise.resolve({}); | ||
return result; | ||
} | ||
|
||
banner = { | ||
heading: "Click on 'Get Civic Pass' to visit Civic and request your passes.", | ||
content: ( | ||
<div> | ||
You may also use this link to check and update the status of passes. Note: Polygon is recommended for lowest gas | ||
cost. After passes have been issued to your linked wallet, select the corresponding box(es) below and click | ||
SAVE. Gitcoin will check for passes and save those that are valid.{" "} | ||
<a | ||
href="https://support.gitcoin.co/gitcoin-knowledge-base/gitcoin-passport/how-do-i-add-passport-stamps/guide-to-add-lens-stamp-to-gitcoin-passport" | ||
style={{ | ||
color: "rgb(var(--color-foreground-2))", | ||
textDecoration: "underline", | ||
cursor: "pointer", | ||
paddingLeft: "2px", | ||
}} | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
Learn more | ||
</a> | ||
. | ||
</div> | ||
), | ||
cta: { | ||
label: "Get Civic Pass", | ||
url: "https://getpass.civic.com?scope=uniqueness,captcha,liveness&chain=polygon,arbitrum%20one,xdc,ethereum,fantom,optimism,base,avalanche&referrer=gitcoin-passport", | ||
}, | ||
}; | ||
} |