Skip to content

Commit

Permalink
[INJIVER-833] - auto generate QR code
Browse files Browse the repository at this point in the history
Signed-off-by: Sreenadh S <[email protected]>
  • Loading branch information
sree96 committed Dec 4, 2024
1 parent d7b0ca0 commit db228a8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,6 @@ function VcDisplayCard(props: displayProps) {
/>
</div>
<div className="grid">
<Button
id="verify-another-qr-code-button"
title={t("Common:Button.verifyAnotherQrCode")}
className="w-[200px] lg:w-[350px] mt-2 mb-20 lg:mb-6 text-lgNormalTextSize inline-flex"
onClick={() => {
dispatch(goToHomeScreen({}));
dispatch(resetVpRequest());
}}
/>
<Button
id="verify-another-qr-code-button"
title="Proceed"
Expand Down
31 changes: 18 additions & 13 deletions ui/src/pages/Verify.tsx
Original file line number Diff line number Diff line change
@@ -1,36 +1,41 @@
import React from "react";
import React, {useEffect} from "react";
import PageTemplate from "../components/PageTemplate";
import VerificationProgressTracker from "../components/Home/VerificationProgressTracker";
import { VpVerification } from "../components/Home/VerificationSection/VpVerification";
import SelectionPannel from "../components/Home/VerificationSection/commons/SelectionPannel";
import { Button } from "../components/Home/VerificationSection/commons/Button";
import { useTranslation } from "react-i18next";
import { useVerifyFlowSelector } from "../redux/features/verification/verification.selector";
import { setSelectCredential } from "../redux/features/verify/verifyState";
import {getVpRequest, setSelectCredential} from "../redux/features/verify/verifyState";
import { useAppDispatch } from "../redux/hooks";
import {verifiableClaims} from "../utils/config";

export function Verify() {
const { t } = useTranslation("Verify");
const txnId = useVerifyFlowSelector((state) => state.txnId);
const openSelection = useVerifyFlowSelector((state) => state.SelectionPannel);
const dispatch = useAppDispatch();
useEffect(() => {
{dispatch(getVpRequest({ selectedClaims: ["National ID"] }))}
}, []);

return (
<PageTemplate>
<div className="grid grid-cols-12">
<div className="col-start-1 col-end-13 lg:col-span-6 lg:bg-pageBackGroundColor xs:w-[100vw] lg:max-w-[50vw] pb-[100px]">
<VerificationProgressTracker />
<Button
id="request-credentials-button"
title={t("rqstButton")}
className="w-[300px] mt-10 mx-auto lg:ml-[76px]"
fill
onClick={() => {
dispatch(setSelectCredential());
}}
disabled={txnId !== ""}
/>
{openSelection && <SelectionPannel />}
{/*<Button*/}
{/* id="request-credentials-button"*/}
{/* title={t("rqstButton")}*/}
{/* className="w-[300px] mt-10 mx-auto lg:ml-[76px]"*/}
{/* fill*/}
{/* onClick={() => {*/}
{/* dispatch(setSelectCredential());*/}
{/* }}*/}
{/* disabled={txnId !== ""}*/}
{/*/>*/}
{/*{openSelection && <SelectionPannel />}*/}

</div>
<div className="col-start-1 col-end-13 lg:col-start-7 lg:col-end-13 xs:[100vw] lg:max-w-[50vw]">
<VpVerification loc={window.location.href}/>
Expand Down

0 comments on commit db228a8

Please sign in to comment.