Skip to content

Commit

Permalink
fix request params
Browse files Browse the repository at this point in the history
  • Loading branch information
jchartrand committed Feb 20, 2025
1 parent e985eb8 commit 35b618a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app/collect/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import AcmeLogo from '@/app/ui/dcc-logo';
import DCCLogo from '@/app/ui/dcc-logo';
import { Suspense } from 'react';
import { useSearchParams } from 'next/navigation'
import QRCode from "react-qr-code";
Expand All @@ -9,8 +9,8 @@ export default function Page() {

const searchParams = useSearchParams()

const exchangeId = searchParams.get('exchange')
const transactionId = searchParams.get('transaction')
const exchangeId = searchParams.get('exchangeId')
const transactionId = searchParams.get('transactionId')

const deepLink = `https://lcw.app/request.html?issuer=issuer.example.com&auth_type=bearer&challenge=50991c0d-e033-49c4-86aa-7f3620cf6937&vc_request_url=https://issuer.dcconsortium.org/exchange/${exchangeId}/${transactionId}`

Expand All @@ -19,17 +19,16 @@ export default function Page() {
<div className="relative mx-auto flex w-full max-w-[400px] flex-col space-y-2.5 p-4 md:-mt-32">
<div className="flex h-20 w-full items-end rounded-lg bg-blue-500 p-3 md:h-36">
<div className="w-32 text-white md:w-36">
<AcmeLogo />
<DCCLogo />
</div>
</div>
<Suspense>
Collect your credential!!!!!! Deep link and QR and mayber chapi will go here.
<br/><br/>
<a href={`${deepLink}`}>Add your credential to the Learner Credential Wallet</a>
<QRCode value={deepLink} />
</Suspense>
</div>
</main>
);
}

// <QRCode value={deepLink} />

0 comments on commit 35b618a

Please sign in to comment.