Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
chore: upgrade dependencies and fix types (#99)
Browse files Browse the repository at this point in the history
* fix: enable 0 amount and add missing type

* chore: upgrade dependencies

* chore: add missing dependencies

Co-authored-by: Samer Buna <samerbuna@users.noreply.github.com>
  • Loading branch information
samerbuna and samerbuna authored Jun 10, 2022
1 parent bd05719 commit cb62443
Show file tree
Hide file tree
Showing 6 changed files with 755 additions and 665 deletions.
42 changes: 23 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"tsc:check": "tsc --pretty --noEmit --skipLibCheck"
},
"dependencies": {
"@galoymoney/client": "^0.1.20",
"@apollo/client": "^3.6.6",
"@galoymoney/client": "^0.1.25",
"@galoymoney/react": "^0.1.11",
"@opentelemetry/api": "^1.1.0",
"@opentelemetry/core": "^1.2.0",
Expand All @@ -37,7 +38,7 @@
"@ory/kratos-client": "^0.9.0-alpha.3",
"@ory/themes": "^0.0.101",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.2.0",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^14.2.0",
"@types/body-parser": "^1.19.2",
"@types/cookie-session": "^2.0.44",
Expand All @@ -46,34 +47,37 @@
"@types/express-rate-limit": "^6.0.0",
"@types/jsonwebtoken": "^8.5.8",
"@types/morgan": "^1.9.3",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.4",
"@types/react": "^18.0.12",
"@types/react-dom": "^18.0.5",
"@types/serialize-javascript": "^5.0.2",
"@types/supertest": "^2.0.12",
"autoprefixer": "^10.4.7",
"axios": "^0.27.2",
"bitcoinjs-lib": "^6.0.1",
"body-parser": "^1.20.0",
"bolt11": "^1.4.0",
"buffer": "^6.0.3",
"cookie-session": "^2.0.0",
"copy-to-clipboard": "^3.3.1",
"copyfiles": "^2.4.1",
"cross-env-file": "^1.0.0",
"cross-fetch": "^3.1.4",
"cross-fetch": "^3.1.5",
"css-loader": "^6.7.1",
"ejs": "^3.1.8",
"express": "^4.18.1",
"express-rate-limit": "^6.4.0",
"graphql": "^16.5.0",
"helmet": "^5.0.1",
"helmet": "^5.1.0",
"history": "^5.2.0",
"jest-environment-jsdom": "^28.1.0",
"i18n-js": "^3.9.2",
"jest-environment-jsdom": "^28.1.1",
"jsonwebtoken": "^8.5.1",
"mini-css-extract-plugin": "^2.6.0",
"morgan": "^1.10.0",
"normalize.css": "^8.0.1",
"postcss": "^8.4.13",
"postcss": "^8.4.14",
"postcss-import": "^14.1.0",
"postcss-loader": "^6.2.1",
"postcss-loader": "^7.0.0",
"postcss-mixins": "^9.0.1",
"postcss-nested": "^5.0.6",
"react": "^18.1.0",
Expand All @@ -88,23 +92,23 @@
"subscriptions-transport-ws": "^0.11.0",
"supertest": "^6.2.3",
"ts-loader": "^9.3.0",
"typescript": "^4.6.4",
"typescript": "^4.7.3",
"url": "^0.11.0",
"webpack": "^5.72.1",
"webpack": "^5.73.0",
"webpack-cli": "^4.9.1"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"babel-jest": "^28.1.0",
"eslint": "^8.15.0",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"babel-jest": "^28.1.1",
"eslint": "^8.17.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.5.0",
"jest": "^28.1.0",
"jest": "^28.1.1",
"prettier": "^2.6.2",
"ts-jest": "^28.0.2",
"ts-node-dev": "^1.1.8",
"ts-jest": "^28.0.4",
"ts-node-dev": "^2.0.0",
"typesync": "^0.9.1"
}
}
4 changes: 1 addition & 3 deletions src/components/__snapshots__/root.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,7 @@ exports[`Root appRoutes renders Receive and matches snapshot 1`] = `
<div
class="action-button center-display"
>
<button
disabled=""
>
<button>
Next
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/receive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ const Receive: NoPropsFCT = () => {
onClick={() =>
setInput((currInput) => ({ ...currInput, view: "result" }))
}
disabled={!input.amount}
disabled={input.amount === undefined}
>
{translate("Next")}{" "}
{input.amount === undefined && <Spinner size="small" />}
Expand Down
2 changes: 1 addition & 1 deletion src/components/receive/invoice-generator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type ExpiredMessageFCT = React.FC<{ onClick: () => void }>

const ExpiredMessage: ExpiredMessageFCT = ({ onClick }) => (
<div className="invoice-message expired-invoice">
{translate("Invoice Expired...")}{" "}
{translate("Invoice Expired")}{" "}
<div className="link" onClick={onClick}>
{translate("Generate New Invoice")}
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/store/auth-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import { useContext, createContext } from "react"
export type AuthIdentity = {
id: string
uid: string
userId?: string
phoneNumber?: string
emailAddress?: string
firstName?: string
lastName?: string
accountStatus?: string
accountStatus?: "NEW" | "PENDING" | "ACTIVE" | "LOCKED" // FIXME: Get from client
}

export type AuthSession = {
Expand Down
Loading

0 comments on commit cb62443

Please sign in to comment.