-
+
Camera Access Denied
diff --git a/ui/src/components/Home/VerificationSection/QrScanner.tsx b/ui/src/components/Home/VerificationSection/QrScanner.tsx
index 854de5f0..ed491c76 100644
--- a/ui/src/components/Home/VerificationSection/QrScanner.tsx
+++ b/ui/src/components/Home/VerificationSection/QrScanner.tsx
@@ -12,7 +12,7 @@ import {
} from "../../../utils/config";
import { useAppDispatch } from "../../../redux/hooks";
import {
- goHomeScreen,
+ goToHomeScreen,
verificationInit,
} from "../../../redux/features/verification/verification.slice";
import { raiseAlert } from "../../../redux/features/alerts/alerts.slice";
@@ -140,7 +140,7 @@ function QrScanner() {
useEffect(() => {
timer = setTimeout(() => {
- dispatch(goHomeScreen({}));
+ dispatch(goToHomeScreen({}));
dispatch(
raiseAlert({
open: true,
@@ -206,7 +206,7 @@ function QrScanner() {
{
- dispatch(goHomeScreen({}))
+ dispatch(goToHomeScreen({}))
}}>
Verify Another QR code
diff --git a/ui/src/components/Home/VerificationSection/ScanQrCode.tsx b/ui/src/components/Home/VerificationSection/ScanQrCode.tsx
index 11b28c20..9c1705ef 100644
--- a/ui/src/components/Home/VerificationSection/ScanQrCode.tsx
+++ b/ui/src/components/Home/VerificationSection/ScanQrCode.tsx
@@ -1,5 +1,5 @@
-import React from 'react';
-import { QrIcon, ScanIcon } from '../../../utils/theme-utils';
+import React, { useState } from 'react';
+import { GradientScanIcon, QrIcon, WhiteScanIcon } from '../../../utils/theme-utils';
import StyledButton from "./commons/StyledButton";
import {UploadQrCode} from "./UploadQrCode";
import {useAppDispatch} from "../../../redux/hooks";
@@ -11,11 +11,15 @@ import { ScanOutline } from '../../../utils/theme-utils';
const Scan = () => {
const dispatch = useAppDispatch();
+ const [isHover, setHover] = useState(false)
+ const ScanIcon = isHover? WhiteScanIcon :GradientScanIcon
return (
<>
}
+ onMouseEnter={()=> setHover(true)}
+ onMouseLeave={()=> setHover(false)}
className='mx-0 my-1.5 text-center inline-flex absolute top-[160px] left-[33px] w-[205px] lg:w-[223px] lg:left-[63px] lg:top-[231px]'
fill={false}
onClick={async (event) => {
diff --git a/ui/src/components/Home/VerificationSection/UploadQrCode.tsx b/ui/src/components/Home/VerificationSection/UploadQrCode.tsx
index d8b1cab0..85885ec3 100644
--- a/ui/src/components/Home/VerificationSection/UploadQrCode.tsx
+++ b/ui/src/components/Home/VerificationSection/UploadQrCode.tsx
@@ -4,10 +4,10 @@ import {
SupportedFileTypes,
UploadFileSizeLimits,
} from "../../../utils/config";
-import { UploadIcon } from "../../../utils/theme-utils";
+import { GradientUploadIcon, WhiteUploadIcon } from "../../../utils/theme-utils";
import { useAppDispatch } from "../../../redux/hooks";
import {
- goHomeScreen,
+ goToHomeScreen,
qrReadInit,
verificationInit,
} from "../../../redux/features/verification/verification.slice";
@@ -16,6 +16,7 @@ import { checkInternetStatus, getFileExtension } from "../../../utils/misc";
import { updateInternetConnectionStatus } from "../../../redux/features/application-state/application-state.slice";
import { AlertInfo } from "../../../types/data-types";
import { Dispatch } from "redux";
+import { useState } from "react";
const doFileChecks = (dispatch: Dispatch, file: File | null): boolean => {
if (!file) return false;
@@ -35,7 +36,7 @@ const doFileChecks = (dispatch: Dispatch, file: File | null): boolean => {
}
if (alert) {
- dispatch(goHomeScreen({}));
+ dispatch(goToHomeScreen({}));
dispatch(raiseAlert({ ...alert, open: true }));
return false;
}
@@ -57,22 +58,6 @@ const doInternetCheck = async (dispatch: Dispatch) => {
const acceptedFileTypes = SupportedFileTypes.map((ext) => `.${ext}`).join(", ");
-function UploadButton({ displayMessage }: { displayMessage: string }) {
- return (
-
-
-
- );
-}
export const UploadQrCode = ({
displayMessage,
@@ -82,8 +67,31 @@ export const UploadQrCode = ({
className?: string;
}) => {
const dispatch = useAppDispatch();
+
+ const [isHover, setHover] = useState(false)
+
+ const UploadButton =({ displayMessage }: { displayMessage: string })=> {
+ const UploadIcon = isHover ? WhiteUploadIcon : GradientUploadIcon;
+ return (
+
+
+
+ );
+ }
+
return (
setHover(true)}
+ onMouseLeave={()=>setHover(false)}
className={`mx-auto my-1.5 flex content-center justify-center ${className}`}
>
@@ -121,7 +129,7 @@ export const UploadQrCode = ({
dispatch(
raiseAlert({ ...AlertMessages.qrNotDetected, open: true })
);
- dispatch(goHomeScreen({}));
+ dispatch(goToHomeScreen({}));
}
});
}}
diff --git a/ui/src/components/Home/VerificationSection/Verification.tsx b/ui/src/components/Home/VerificationSection/Verification.tsx
index 1214195b..19d4c028 100644
--- a/ui/src/components/Home/VerificationSection/Verification.tsx
+++ b/ui/src/components/Home/VerificationSection/Verification.tsx
@@ -3,7 +3,7 @@ import Loader from "../../commons/Loader";
import QrScanner from "./QrScanner";
import StyledButton from "./commons/StyledButton";
import { useAppDispatch } from "../../../redux/hooks";
-import { goHomeScreen } from "../../../redux/features/verification/verification.slice";
+import { goToHomeScreen } from "../../../redux/features/verification/verification.slice";
import { VerificationSteps } from "../../../utils/config";
import { useVerificationFlowSelector } from "../../../redux/features/verification/verification.selector";
import { ScanOutline } from "../../../utils/theme-utils";
@@ -34,7 +34,7 @@ const Verification = () => {
id="verification-back-button"
className="w-[100px] lg:w-[350px] mt-[18px] mx-0 my-1.6 text-lgNormalTextSize inline-flex"
onClick={() => {
- dispatch(goHomeScreen({}));
+ dispatch(goToHomeScreen({}));
}}
>
Back
diff --git a/ui/src/components/PageTemplate/Navbar.tsx b/ui/src/components/PageTemplate/Navbar.tsx
index 8e452053..495b129f 100644
--- a/ui/src/components/PageTemplate/Navbar.tsx
+++ b/ui/src/components/PageTemplate/Navbar.tsx
@@ -33,7 +33,7 @@ const MobileDropDownMenu = ({showMenu}: { showMenu: boolean }) => {