From 18807afea158f64eb0241b89cdafde3ec1847f4a Mon Sep 17 00:00:00 2001 From: Samuel Siegart Date: Mon, 11 Oct 2021 11:22:19 -0700 Subject: [PATCH] feat(react-wallet): Create app layout with left nav and app bar (#3941) * feat(react-wallet): Create app layout with left nav and app bar * feat(react-wallet): Fix font family quote usage --- .../dapp-svelte-wallet/react-ui/package.json | 1 + .../react-ui/public/index.html | 6 +- .../dapp-svelte-wallet/react-ui/src/App.css | 14 --- .../dapp-svelte-wallet/react-ui/src/App.js | 89 ++++++++++++++++--- .../react-ui/src/components/AppBar.js | 61 +++++++++++++ .../react-ui/src/components/NavMenu.js | 80 +++++++++++++++++ .../src/components/WalletConnection.js | 34 +++++-- .../components/tests/WalletConnection.test.js | 25 +++++- .../dapp-svelte-wallet/react-ui/src/index.css | 17 ---- .../dapp-svelte-wallet/react-ui/src/index.js | 7 +- .../react-ui/src/tests/App.test.js | 64 +++++++++++-- .../react-ui/src/views/Contacts.js | 7 ++ .../react-ui/src/views/Dapps.js | 7 ++ .../react-ui/src/views/Dashboard.js | 7 ++ .../react-ui/src/views/Issuers.js | 7 ++ .../react-ui/src/views/Purses.js | 7 ++ 16 files changed, 374 insertions(+), 59 deletions(-) delete mode 100644 packages/dapp-svelte-wallet/react-ui/src/App.css create mode 100644 packages/dapp-svelte-wallet/react-ui/src/components/AppBar.js create mode 100644 packages/dapp-svelte-wallet/react-ui/src/components/NavMenu.js delete mode 100644 packages/dapp-svelte-wallet/react-ui/src/index.css create mode 100644 packages/dapp-svelte-wallet/react-ui/src/views/Contacts.js create mode 100644 packages/dapp-svelte-wallet/react-ui/src/views/Dapps.js create mode 100644 packages/dapp-svelte-wallet/react-ui/src/views/Dashboard.js create mode 100644 packages/dapp-svelte-wallet/react-ui/src/views/Issuers.js create mode 100644 packages/dapp-svelte-wallet/react-ui/src/views/Purses.js diff --git a/packages/dapp-svelte-wallet/react-ui/package.json b/packages/dapp-svelte-wallet/react-ui/package.json index 892680ba9c7..89a8bbd87ab 100644 --- a/packages/dapp-svelte-wallet/react-ui/package.json +++ b/packages/dapp-svelte-wallet/react-ui/package.json @@ -17,6 +17,7 @@ "eslint-plugin-jest": "^24.5.2", "react": "^16.8.0", "react-dom": "^16.8.0", + "react-router-dom": "^5.3.0", "react-scripts": "4.0.3", "ses": "^0.14.3" }, diff --git a/packages/dapp-svelte-wallet/react-ui/public/index.html b/packages/dapp-svelte-wallet/react-ui/public/index.html index a420e5e59a5..65d21bc4c8e 100644 --- a/packages/dapp-svelte-wallet/react-ui/public/index.html +++ b/packages/dapp-svelte-wallet/react-ui/public/index.html @@ -28,6 +28,10 @@ + Agoric Wallet - +