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

Update the upload qr flow according to the new design #9

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading