diff options
| author | Sebastian <sebasjm@gmail.com> | 2022-09-16 16:04:41 -0300 |
|---|---|---|
| committer | Sebastian <sebasjm@gmail.com> | 2022-09-16 16:04:41 -0300 |
| commit | e14310825437c5de93c07c570639d2a09fc4826b (patch) | |
| tree | 6d63ed9d62bdb21fdbf41e8c5d30fcc08bb9326f /packages/taler-wallet-webextension/src/cta/InvoiceCreate | |
| parent | 59d235e8d29159bc8caccf8bee6a2bca8b0b90dc (diff) | |
pretty
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/InvoiceCreate')
3 files changed, 2 insertions, 6 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/index.ts b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/index.ts index f7d6fbe63..8beac2cb2 100644 --- a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/index.ts +++ b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/index.ts @@ -29,10 +29,7 @@ export interface Props { onSuccess: (tx: string) => Promise<void>; } -export type State = - | State.Loading - | State.LoadingUriError - | State.Ready; +export type State = State.Loading | State.LoadingUriError | State.Ready; export namespace State { export interface Loading { diff --git a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts index a338387de..6b4f54504 100644 --- a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts +++ b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts @@ -87,7 +87,7 @@ export function useComponentState( invalid: !subject || Amounts.isZero(amount), exchangeUrl: selected.exchangeBaseUrl, create: { - onClick: accept + onClick: accept, }, cancel: { onClick: onClose, diff --git a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx index 693c07713..209fb31e5 100644 --- a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx +++ b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/views.tsx @@ -45,7 +45,6 @@ export function LoadingUriView({ error }: State.LoadingUriError): VNode { ); } - export function ReadyView({ invalid, exchangeUrl, |
