diff options
author | Sebastian <sebasjm@gmail.com> | 2021-10-19 10:56:52 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-10-19 11:05:32 -0300 |
commit | 5883d42d800c7b444c59d626bcaa5abca7dc83d0 (patch) | |
tree | ac42ad7b9e26c4dd2145a31101305884906a543e /packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.tsx | |
parent | 269022a526b670d602ca146f4df02850983bb72e (diff) | |
download | wallet-core-5883d42d800c7b444c59d626bcaa5abca7dc83d0.tar.xz |
add template from merchant backoffice
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.tsx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.tsx b/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.tsx new file mode 100644 index 000000000..be74729eb --- /dev/null +++ b/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.tsx @@ -0,0 +1,27 @@ +import { h, VNode } from "preact"; +import { BackupReducerProps, AnastasisClientFrame } from "./index"; + +export function PoliciesPayingScreen(props: BackupReducerProps): VNode { + const payments = props.backupState.policy_payment_requests ?? []; + + return ( + <AnastasisClientFrame hideNext title="Backup: Recovery Document Payments"> + <p> + Some of the providers require a payment to store the encrypted + recovery document. + </p> + <ul> + {payments.map((x, i) => { + return ( + <li key={i}> + {x.provider}: {x.payto} + </li> + ); + })} + </ul> + <button onClick={() => props.reducer.transition("pay", {})}> + Check payment status now + </button> + </AnastasisClientFrame> + ); +} |