diff options
author | Sebastian <sebasjm@gmail.com> | 2023-12-14 12:53:06 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-12-14 12:53:06 -0300 |
commit | 834d87e48448cf5e4ac8f57333b6552a5d1d7334 (patch) | |
tree | 10741996be5767ab3fe1f520f0f1d7d8873f5494 /packages/taler-wallet-webextension/src/cta/Reward/views.tsx | |
parent | 2fd4481b041f946431004e40c7a4ffcdd620a9cb (diff) | |
download | wallet-core-834d87e48448cf5e4ac8f57333b6552a5d1d7334.tar.xz |
show terms of service on reward and p2p
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Reward/views.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Reward/views.tsx | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Reward/views.tsx b/packages/taler-wallet-webextension/src/cta/Reward/views.tsx index 5d99a0132..3c3190a07 100644 --- a/packages/taler-wallet-webextension/src/cta/Reward/views.tsx +++ b/packages/taler-wallet-webextension/src/cta/Reward/views.tsx @@ -23,6 +23,7 @@ import { Link, SubTitle, WalletAction } from "../../components/styled/index.js"; import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { Button } from "../../mui/Button.js"; import { State } from "./index.js"; +import { TermsOfService } from "../../components/TermsOfService/index.js"; export function IgnoredView(state: State.Ignored): VNode { const { i18n } = useTranslationContext(); @@ -60,15 +61,17 @@ export function ReadyView(state: State.Ready): VNode { /> </section> <section> - <Button - variant="contained" - color="success" - onClick={state.accept.onClick} - > - <i18n.Translate> - Receive {<Amount value={state.amount} />} - </i18n.Translate> - </Button> + <TermsOfService key="terms" exchangeUrl={state.exchangeBaseUrl} > + <Button + variant="contained" + color="success" + onClick={state.accept.onClick} + > + <i18n.Translate> + Receive {<Amount value={state.amount} />} + </i18n.Translate> + </Button> + </TermsOfService> </section> </Fragment> ); |