Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TECH-292 - Show the credential when presented #87

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

TYRONEMICHAEL
Copy link
Contributor

@TYRONEMICHAEL TYRONEMICHAEL commented Sep 3, 2024

Screenshot 2024-09-03 at 08 27 21

Copy link

vercel bot commented Sep 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
icp-civic-sign-frontend-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 3, 2024 1:39pm

<img src="/logo2.svg" alt="DFINITY logo" className="mx-auto mb-8 w-32" />

{principal ? (
<div className="flex flex-col items-center justify-center">
<h1 className="text-2xl font-bold text-center mb-4">Welcome to the ICP Relying Canister</h1>
<p className="text-center mb-6">Logged in as <span className="font-mono bg-gray-100 p-1 rounded">{principal?.toText()}</span></p>
{credentialCheckResponse && (
<div className="mb-6 ">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should maybe be a gap on the parent?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what you mean here.

{credentialCheckResponse && (
<div className="mb-6 ">
<p className="text-sm text-gray-600">Response:</p>
<p className="font-mono text-sm bg-gray-100 p-8 rounded">{JSON.stringify(credentialCheckResponse.credential, undefined, 2)}</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of this p, use <pre><code> to create it

@TYRONEMICHAEL
Copy link
Contributor Author

Approval via Slack from Pedro.

@TYRONEMICHAEL TYRONEMICHAEL merged commit cddbb39 into develop Sep 3, 2024
4 checks passed
@TYRONEMICHAEL TYRONEMICHAEL deleted the TECH-292__show-credential-on-ui branch September 3, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants