merchant-backoffice

ZZZ: Inactive/Deprecated
Log | Files | Refs | Submodules | README

commit e0a799b765a0b6643e8715343371e19b645fe2dc
parent d64e853cf9f3a2181587f2265e1ae037069ba8e9
Author: ms <ms@taler.net>
Date:   Thu, 26 May 2022 15:57:57 +0200

optional content

Diffstat:
Mpackages/bank/src/pages/home/index.tsx | 17++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/packages/bank/src/pages/home/index.tsx b/packages/bank/src/pages/home/index.tsx @@ -1690,16 +1690,19 @@ export function BankHome(): VNode { var regMsg = function () { // @ts-ignore if (__LIBEUFIN_UI_ALLOW_REGISTRATIONS__) { - return ( - <p><Translate>If you are a new customer please &nbsp; + return (<Fragment> + <p><Translate>If you are a new customer please&nbsp; <a href="#" onClick={() => {pageStateSetter((prevState) => ({...prevState, tryRegister: true}))}}>register!</a> - &nbsp;&nbsp; Registration is fast and free, and it gives - you a registration bonus of 100 <Currency /></Translate></p>); - } - } - + &nbsp;&nbsp;</Translate></p>{ + maybeDemoContent(<p><Translate>Registration is fast and + free, and it gives you a registration bonus of 100 <Currency /> + </Translate></p>) + /*close JS block of optional content*/ } + </Fragment>); // close return of registrations allowance. + } // close 'then' branch of registrations allowance. + } // close helper function. return ( <PageContext.Provider value={[pageState, pageStateSetter]}> <BankFrame>