Add QR Code to enable Telegram notifications (#232)

This commit is contained in:
Reckless_Satoshi 2022-09-09 17:07:15 +00:00 committed by GitHub
parent 4c01d42f62
commit 825ffe3cfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -367,6 +367,9 @@ class TradeBox extends Component {
{t("Enable TG Notifications")}
</DialogTitle>
<DialogContent>
<div style={{textAlign:"center"}}>
<QRCode value={"tg://resolve?domain="+this.props.data.tg_bot_name+"&start="+this.props.data.tg_token} size={275}/>
</div>
<DialogContentText id="alert-dialog-description">
{t("You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.")}
</DialogContentText>