From 043d4fa6ae500bb620800e0e8e348fcba68b07c6 Mon Sep 17 00:00:00 2001 From: Nicolas Burtey Date: Mon, 12 Feb 2024 15:51:31 -0600 Subject: [PATCH] feat: POC for NFC for Pay --- apps/pay/app/page.tsx | 4 +- .../ParsePOSPayment/Receive-Invoice.tsx | 102 ++++++++++++- apps/pay/components/ParsePOSPayment/nfc.tsx | 143 ++++++++++++++++++ apps/pay/package.json | 1 + pnpm-lock.yaml | 54 ++++++- 5 files changed, 300 insertions(+), 4 deletions(-) create mode 100644 apps/pay/components/ParsePOSPayment/nfc.tsx diff --git a/apps/pay/app/page.tsx b/apps/pay/app/page.tsx index c93726f14fb..7b8ce03ebd1 100644 --- a/apps/pay/app/page.tsx +++ b/apps/pay/app/page.tsx @@ -12,6 +12,7 @@ import { useRouter } from "next/navigation" import CurrencyDropdown from "../components/Currency/currency-dropdown" import { getClientSideGqlConfig } from "../config/config" +import NFCComponent from "../components/ParsePOSPayment/nfc" const GET_NODE_STATS = gql` query nodeIds { @@ -46,6 +47,7 @@ function Home() { return ( + @@ -66,7 +68,7 @@ function Home() { > {error ? "Unavailable" - : loading + : loading ? "Loading..." : data.globals.nodesIds[0]}