Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
ichub committed Sep 27, 2024
1 parent 4d7229b commit 9a18f3e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,17 @@ export function OneClickLoginScreen(): JSX.Element | null {
if (!email || !code) {
return;
}

try {
setLoading(true);
await dispatch({
type: "one-click-login",
email,
code,
targetFolder
});
} catch (err) {
setLoading(false);
await dispatch({
type: "error",
error: {
Expand Down Expand Up @@ -134,24 +137,29 @@ export function OneClickLoginScreen(): JSX.Element | null {
<>
<Spacer h={32} />

{ticketPreviews.map((ticket) => (
<CardOutlineExpanded>
<CardBodyContainer>
<CardHeader isMainIdentity={true}>
{ticket.eventName} ({ticket.ticketName})
</CardHeader>
<PODTicketCardBodyImpl
idBasedVerifyURL=""
ticketData={ticket}
key={ticket.ticketId}
/>
</CardBodyContainer>
</CardOutlineExpanded>
))}

<Spacer h={16} />
{ticketPreviews.length === 0 ? (
<div>No tickets found</div>
) : (
<>
{ticketPreviews.map((ticket) => (
<CardOutlineExpanded>
<CardBodyContainer>
<CardHeader isMainIdentity={true}>
{ticket.eventName} ({ticket.ticketName})
</CardHeader>
<PODTicketCardBodyImpl
idBasedVerifyURL=""
ticketData={ticket}
key={ticket.ticketId}
/>
</CardBodyContainer>
</CardOutlineExpanded>
))}
<Spacer h={16} />
</>
)}

<Button onClick={handleOneClickLogin}>More Zupass</Button>
<Button onClick={handleOneClickLogin}>Continue to Zupass</Button>
</>
)}
</AppContainer>
Expand Down
1 change: 0 additions & 1 deletion packages/lib/passport-interface/src/RequestTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { EdDSAPublicKey } from "@pcd/eddsa-pcd";
import { EdDSATicketPCD, EdDSATicketPCDTypeName } from "@pcd/eddsa-ticket-pcd";
import { PCDAction } from "@pcd/pcd-collection";
import { ArgsOf, PCDOf, PCDPackage, SerializedPCD } from "@pcd/pcd-types";

import { IPODTicketData } from "@pcd/pod-ticket-pcd/src/schema";
import { SerializedSemaphoreGroup } from "@pcd/semaphore-group-pcd";
import { SemaphoreSignaturePCD } from "@pcd/semaphore-signature-pcd";
Expand Down

0 comments on commit 9a18f3e

Please sign in to comment.