Add stealth invoice icon and ES translation

This commit is contained in:
Reckless_Satoshi 2022-08-13 05:55:04 -07:00
parent 6bae4d95e5
commit 83320c9b91
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
5 changed files with 52 additions and 24 deletions

View File

@ -31,6 +31,7 @@ import PasswordIcon from "@mui/icons-material/Password";
import ContentCopy from "@mui/icons-material/ContentCopy"; import ContentCopy from "@mui/icons-material/ContentCopy";
import PersonAddAltIcon from "@mui/icons-material/PersonAddAlt"; import PersonAddAltIcon from "@mui/icons-material/PersonAddAlt";
import EmojiEventsIcon from "@mui/icons-material/EmojiEvents"; import EmojiEventsIcon from "@mui/icons-material/EmojiEvents";
import { UserNinjaIcon, BitcoinIcon } from "../Icons";
import { getCookie } from "../../utils/cookies"; import { getCookie } from "../../utils/cookies";
import { copyToClipboard } from "../../utils/clipboard"; import { copyToClipboard } from "../../utils/clipboard";
@ -210,12 +211,17 @@ const ProfileDialog = ({
<Divider/> <Divider/>
<Grid container> <ListItem>
<Tooltip placement="top" enterTouchDelay={0} title={t("stealth_invoice_explaination")}> <ListItemIcon>
<UserNinjaIcon/>
</ListItemIcon>
<ListItemText>
<Tooltip placement="top" enterTouchDelay={0} title={t("Stealth lightning invoices do not contain details about the trade except an order reference. Enable this setting if you don't want to disclose details to a custodial lightning wallet.")}>
<Grid item> <Grid item>
<FormControlLabel <FormControlLabel
labelPlacement="start" labelPlacement="end"
label={`${t("Use stealth invoices")}`} label={t("Use stealth invoices")}
control={ control={
<Switch <Switch
checked={stealthInvoices} checked={stealthInvoices}
@ -226,13 +232,21 @@ const ProfileDialog = ({
/> />
</Grid> </Grid>
</Tooltip> </Tooltip>
</Grid> </ListItemText>
</ListItem>
<Grid container> <ListItem>
<Grid item> <ListItemIcon>
<BitcoinIcon/>
</ListItemIcon>
<ListItemText>
<FormControlLabel <FormControlLabel
labelPlacement="start" labelPlacement="end"
label={`${t("Rewards and compensations")}`} label={
<div style={{display:'flex', alignItems:'center'}}>
{t("Rewards and compensations")}
</div>}
control={ control={
<Switch <Switch
checked={showRewards} checked={showRewards}
@ -240,8 +254,8 @@ const ProfileDialog = ({
/> />
} }
/> />
</Grid> </ListItemText>
</Grid> </ListItem>
{showRewards && ( {showRewards && (
<> <>

View File

@ -0,0 +1,11 @@
import React, { Component } from "react";
import { SvgIcon } from "@mui/material"
export default function UserNinjaIcon(props) {
return (
<SvgIcon {...props} x="0px" y="0px" viewBox="0 0 512 512">
<path d="M64 192c27.25 0 51.75-11.5 69.25-29.75c15 54 64 93.75 122.8 93.75c70.75 0 127.1-57.25 127.1-128s-57.25-128-127.1-128c-50.38 0-93.63 29.38-114.5 71.75C124.1 47.75 96 32 64 32c0 33.37 17.12 62.75 43.13 80C81.13 129.3 64 158.6 64 192zM208 96h95.1C321.7 96 336 110.3 336 128h-160C176 110.3 190.3 96 208 96zM337.8 306.9L256 416L174.2 306.9C93.36 321.6 32 392.2 32 477.3c0 19.14 15.52 34.67 34.66 34.67H445.3c19.14 0 34.66-15.52 34.66-34.67C480 392.2 418.6 321.6 337.8 306.9z"/>
</SvgIcon>
);
}

View File

@ -13,6 +13,7 @@ export { default as SellSatsCheckedIcon } from "./SellSatsChecked";
export { default as SellSatsIcon } from "./SellSats"; export { default as SellSatsIcon } from "./SellSats";
export { default as SendReceiveIcon } from "./SendReceive"; export { default as SendReceiveIcon } from "./SendReceive";
export { default as ExportIcon } from "./Export"; export { default as ExportIcon } from "./Export";
export { default as UserNinjaIcon } from "./UserNinja";
// Some Flags missing on react-flags // Some Flags missing on react-flags
export { default as BasqueCountryFlag } from "./BasqueCountryFlag"; export { default as BasqueCountryFlag } from "./BasqueCountryFlag";

View File

@ -228,7 +228,7 @@
"RoboSats in Reddit":"RoboSats in Reddit", "RoboSats in Reddit":"RoboSats in Reddit",
"Current onchain payout fee":"Current onchain payout fee", "Current onchain payout fee":"Current onchain payout fee",
"Use stealth invoices":"Use stealth invoices", "Use stealth invoices":"Use stealth invoices",
"stealth_invoice_explaination":"Stealth invoices do not contain details about the trade except a payment reference. Enable this setting if you don't want to disclose details to a custodial lightning wallet.", "Stealth lightning invoices do not contain details about the trade except an order reference. Enable this setting if you don't want to disclose details to a custodial lightning wallet.":"Stealth lightning invoices do not contain details about the trade except an order reference. Enable this setting if you don't want to disclose details to a custodial lightning wallet.",
"ORDER PAGE - OrderPage.js": "Order details page", "ORDER PAGE - OrderPage.js": "Order details page",
"Order Box":"Order Box", "Order Box":"Order Box",

View File

@ -226,6 +226,8 @@
"Join RoboSats' Subreddit":"Únete al subreddit de RoboSats", "Join RoboSats' Subreddit":"Únete al subreddit de RoboSats",
"RoboSats in Reddit":"RoboSats en Reddit", "RoboSats in Reddit":"RoboSats en Reddit",
"Current onchain payout fee":"Coste actual de recibir onchain", "Current onchain payout fee":"Coste actual de recibir onchain",
"Use stealth invoices":"Facturas sigilosas",
"Stealth lightning invoices do not contain details about the trade except an order reference. Enable this setting if you don't want to disclose details to a custodial lightning wallet.":"Las facturas sigilosas no contienen información sobre tu orden excepto una referencia a la misma. Activalas para no desvelar información a tu proveedor de wallet custodial.",
"ORDER PAGE - OrderPage.js": "Order details page", "ORDER PAGE - OrderPage.js": "Order details page",