Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/mosip/inji-verify into i…
Browse files Browse the repository at this point in the history
…njiver-794-online-sharing-car-portal

Signed-off-by: srikanth716 <srikanthsri7447@gmail.com>
  • Loading branch information
srikanth716 committed Nov 27, 2024
2 parents 3256e30 + d4772cc commit 0efff8d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 20 deletions.
20 changes: 8 additions & 12 deletions ui/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import React, { useEffect } from "react";
import "./App.css";
import { Pages } from "./utils/config";
import Home from "./pages/Home";
import Offline from "./pages/Offline";
import Scan from "./pages/Scan";
import { Scan } from "./pages/Scan";
import { RouterProvider, createBrowserRouter } from "react-router-dom";
import AlertMessage from "./components/commons/AlertMessage";
import PreloadImages from "./components/commons/PreloadImages";
import OvpRedirect from "./pages/OvpRedirect";
import PageNotFound404 from "./pages/PageNotFound404";
import { Verify } from "./pages/Verify";
import { goToHomeScreen } from "./redux/features/verification/verification.slice";
import { Pages } from "./utils/config";
import { useAppSelector } from "./redux/hooks";
import store, { RootState } from "./redux/store";
import { isRTL } from "./utils/i18n";
import { VerificationMethod } from "./types/data-types";
import store from "./redux/store";
import { useAppSelector } from './redux/hooks';
import { RootState } from './redux/store';
import { isRTL } from './utils/i18n';
import { goToHomeScreen } from "./redux/features/verification/verification.slice";
import { Verify } from "./pages/Verify";

function switchToVerificationMethod(method: VerificationMethod) {
store.dispatch(goToHomeScreen({ method }));
Expand Down Expand Up @@ -52,10 +51,7 @@ const router = createBrowserRouter([
},
]);

const preloadImages = [
"/assets/images/under_construction.svg",
"/assets/images/inji-logo.svg",
];
const preloadImages = ['/assets/images/under_construction.svg', '/assets/images/inji-logo.svg'];

function App() {
const language = useAppSelector((state: RootState) => state.common.language);
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/Home/VerificationSection/QrScanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ function QrScanner() {
stopVideoStream();
dispatch(goToHomeScreen({}));
}}
className="absolute top-7 right-4 lg:hidden bg-gray-800 text-white p-2 rounded-full hover:bg-gray-700 focus:outline-none"
className="absolute top-7 right-4 lg:hidden bg-gray-800 text-white p-2 rounded-full hover:bg-gray-700 focus:outline-none z-[60]"
aria-label="Close Scanner"
>
Expand Down
4 changes: 2 additions & 2 deletions ui/src/pages/Scan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PageTemplate from "../components/PageTemplate";
import VerificationSection from "../components/Home/VerificationSection";
import VerificationProgressTracker from "../components/Home/VerificationProgressTracker";

export default function Scan() {
export const Scan = () => {
return (
<PageTemplate>
<div className="grid grid-cols-12">
Expand All @@ -16,4 +16,4 @@ export default function Scan() {
</div>
</PageTemplate>
);
}
};
6 changes: 1 addition & 5 deletions ui/src/types/data-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ export type AlertInfo = {
autoHideDuration?: number;
};

export type VerificationMethod =
| "SCAN"
| "UPLOAD"
| "VERIFY"
| "TO_BE_SELECTED";
export type VerificationMethod = "SCAN" | "UPLOAD" | "VERIFY" | "TO_BE_SELECTED";

export type InternetConnectionStatus =
| "ONLINE"
Expand Down

0 comments on commit 0efff8d

Please sign in to comment.