Skip to content

Commit

Permalink
feat(ui): remove page layout component
Browse files Browse the repository at this point in the history
  • Loading branch information
Vu Van Duc authored and Vu Van Duc committed Apr 25, 2024
1 parent 7130d5d commit 8317218
Show file tree
Hide file tree
Showing 8 changed files with 175 additions and 433 deletions.
11 changes: 11 additions & 0 deletions src/ui/components/Scanner/Scanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ const Scanner = forwardRef(({ setIsValueCaptured }: ScannerProps, ref) => {
const initScan = async () => {
if (isPlatform("ios") || isPlatform("android")) {
const allowed = await checkPermission();
stopScan();
// @TODO - foconnor: instead of setting the optype to idle we should
// have a loading screen with "waiting for server..." etc,
// and it can update to an error if the QR is invalid with a re-scan btn
dispatch(setCurrentOperation(OperationType.IDLE));
// @TODO - foconnor: when above loading screen in place, handle invalid QR code
// @TODO - sdisalvo: receiveInvitationFromUrl should be awaited once we have error handling
Agent.agent.connections.receiveInvitationFromUrl(
"http://dev.keria.cf-keripy.metadata.dev.cf-deployments.org:3902/oobi/EOEdpODpJGC4Wjbyzpe1NudmC7OLlyFkhupN81SYZeu0/agent/EOiD39kROilCvTPEFU14d5BPEcp1tI76Pzq5RDdUmlGY?name=CF%20Credential%20Issuance"
);
setIsValueCaptured && setIsValueCaptured(true);
if (allowed) {
document?.querySelector("body")?.classList.add("scanner-active");
BarcodeScanner.hideBackground();
Expand Down
74 changes: 0 additions & 74 deletions src/ui/components/layout/PageLayout/PageLayout.scss

This file was deleted.

78 changes: 0 additions & 78 deletions src/ui/components/layout/PageLayout/PageLayout.tsx

This file was deleted.

31 changes: 0 additions & 31 deletions src/ui/components/layout/PageLayout/PageLayout.types.ts

This file was deleted.

91 changes: 0 additions & 91 deletions src/ui/components/layout/PageLayout/Pagelayout.test.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/ui/components/layout/PageLayout/index.ts

This file was deleted.

0 comments on commit 8317218

Please sign in to comment.