From 70855964b58d294388e21a71953f6257f57644fb Mon Sep 17 00:00:00 2001 From: Han <56923450+waddaboo@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:40:08 +0800 Subject: [PATCH] feat(dashboard): add create easAttestation credential group to dashboard --- apps/dashboard/src/pages/credentials.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/src/pages/credentials.tsx b/apps/dashboard/src/pages/credentials.tsx index ad79ebfb..6926fe08 100644 --- a/apps/dashboard/src/pages/credentials.tsx +++ b/apps/dashboard/src/pages/credentials.tsx @@ -3,7 +3,8 @@ import { blockchain, Web2Provider, twitter, - github + github, + eas } from "@bandada/credentials" import { Flex, Text, Button } from "@chakra-ui/react" import { useEffect, useState, useCallback, useContext } from "react" @@ -175,9 +176,10 @@ export default function CredentialsPage() { clientRedirectUri ) - // If the credential is blockchain + // If the credential is blockchain or eas attestations if ( - providerName === blockchain.name && + (providerName === blockchain.name || + providerName === eas.name) && isLoggedInAdmin() && state ) {