Skip to content

Commit

Permalink
Merge pull request #9 from shiva-beehyv/add-data-test-ids-and-respons…
Browse files Browse the repository at this point in the history
…iveness

Update the upload qr flow according to the new design
  • Loading branch information
challabeehyv authored Apr 8, 2024
2 parents 09396e7 + eb60b9b commit cb6db24
Show file tree
Hide file tree
Showing 32 changed files with 712 additions and 150 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

/.idea

# dependencies
./inji-verify/node_modules
/inji-verify/node_modules
/.pnp
.pnp.js

Expand Down
65 changes: 65 additions & 0 deletions inji-verify/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions inji-verify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/icons-material": "^5.15.15",
"@mui/material": "^5.15.14",
"@mui/styled-engine": "^5.15.14",
"@openhealthnz-credentials/pdf-image-qr-scanner": "^1.0.2",
Expand All @@ -20,6 +21,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-qr-scanner": "^1.0.0-alpha.11",
"react-router-dom": "^6.22.3",
"react-scripts": "5.0.1",
"typescript": "^4.9.5",
"verification-sdk": "^0.2.12",
Expand Down
2 changes: 1 addition & 1 deletion inji-verify/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Inji Verify</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
19 changes: 16 additions & 3 deletions inji-verify/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@ import React from 'react';
import logo from './assets/logo.svg';
import './App.css';
import Home from "./pages/Home";
import Offline from "./pages/Offline";
import {RouterProvider, createBrowserRouter} from "react-router-dom";

const router = createBrowserRouter([
{
path: '/',
element: <Home/>
},
{
path: '/offline',
element: <Offline/>
}
])

function App() {
return (
<Home/>
);
return (
<RouterProvider router={router}/>
);
}

export default App;
Binary file removed inji-verify/src/assets/inji-logo.png
Binary file not shown.
28 changes: 28 additions & 0 deletions inji-verify/src/assets/inji-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions inji-verify/src/assets/qr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit cb6db24

Please sign in to comment.