From 7591d4df2267a6fabd62e2226ecef69c29564156 Mon Sep 17 00:00:00 2001 From: Samer Buna <75209+samerbuna@users.noreply.github.com> Date: Wed, 9 Feb 2022 10:20:56 -0800 Subject: [PATCH] feat: implement nav menu and contacts screens (#52) * fix: fix initial display of recent transactions * feat: add contacts placeholder components and refactor routes * feat: implement nav menu and contacts screens * chore: upgrade dependencies Co-authored-by: Samer Buna --- package.json | 10 +- .../__snapshots__/root.spec.tsx.snap | 25 +- src/components/contacts/index.tsx | 63 ++ src/components/error-message.tsx | 11 + src/components/header.tsx | 63 +- src/components/logout.tsx | 3 +- src/components/pages/receive.tsx | 4 +- src/components/pages/send.tsx | 12 +- src/components/pages/transactions.tsx | 93 ++ src/components/receive/invoice-generator.tsx | 9 +- src/components/root-component.tsx | 20 +- src/components/root.tsx | 7 +- src/components/transactions/list.tsx | 10 +- src/renderers/server.tsx | 1 + src/server/routes.ts | 33 +- src/server/ssr-router.ts | 8 +- src/styles/main.css | 165 +++- src/styles/theme.css | 2 + src/types/index.d.ts | 6 +- yarn.lock | 845 ++++++++++-------- 20 files changed, 907 insertions(+), 483 deletions(-) create mode 100644 src/components/contacts/index.tsx create mode 100644 src/components/error-message.tsx create mode 100644 src/components/pages/transactions.tsx diff --git a/package.json b/package.json index 6eadc549..ae6229c0 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "tsc:check": "tsc --pretty --noEmit --skipLibCheck" }, "dependencies": { - "@galoymoney/client": "^0.0.19", + "@galoymoney/client": "^0.0.20", "@galoymoney/react": "^0.0.15", "@testing-library/jest-dom": "^5.16.2", "@testing-library/react": "^12.1.2", @@ -75,14 +75,14 @@ "webpack-cli": "^4.9.1" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^5.10.2", - "@typescript-eslint/parser": "^5.10.2", - "babel-jest": "^27.5.0", + "@typescript-eslint/eslint-plugin": "^5.11.0", + "@typescript-eslint/parser": "^5.11.0", + "babel-jest": "^27.5.1", "eslint": "^8.7.0", "eslint-plugin-import": "^2.25.4", "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.3.0", - "jest": "^27.5.0", + "jest": "^27.5.1", "prettier": "^2.5.1", "ts-jest": "^27.1.3", "ts-node-dev": "^1.1.8", diff --git a/src/components/__snapshots__/root.spec.tsx.snap b/src/components/__snapshots__/root.spec.tsx.snap index d84f6964..bdebd77a 100644 --- a/src/components/__snapshots__/root.spec.tsx.snap +++ b/src/components/__snapshots__/root.spec.tsx.snap @@ -9,7 +9,7 @@ exports[`Root renders Home and matches snapshot 1`] = ` class="home" >
- Login +