fix currency link in history, hide auto-open wallet, fix space
This commit is contained in:
parent
543795f7fc
commit
d9c39f53d6
@ -136,12 +136,13 @@ export function Application(): VNode {
|
|||||||
|
|
||||||
<Route
|
<Route
|
||||||
path={Pages.balanceHistory.pattern}
|
path={Pages.balanceHistory.pattern}
|
||||||
component={() => (
|
component={({ currency }: { currency?: string }) => (
|
||||||
<WalletTemplate
|
<WalletTemplate
|
||||||
path="balance"
|
path="balance"
|
||||||
goToTransaction={redirectToTxInfo}
|
goToTransaction={redirectToTxInfo}
|
||||||
>
|
>
|
||||||
<HistoryPage
|
<HistoryPage
|
||||||
|
currency={currency}
|
||||||
goToWalletDeposit={(currency: string) =>
|
goToWalletDeposit={(currency: string) =>
|
||||||
redirectTo(Pages.sendCash({ amount: `${currency}:0` }))
|
redirectTo(Pages.sendCash({ amount: `${currency}:0` }))
|
||||||
}
|
}
|
||||||
|
@ -75,6 +75,7 @@ const exampleData = {
|
|||||||
...commonTransaction(),
|
...commonTransaction(),
|
||||||
amountEffective: "USD:11",
|
amountEffective: "USD:11",
|
||||||
type: TransactionType.Payment,
|
type: TransactionType.Payment,
|
||||||
|
posConfirmation: undefined,
|
||||||
info: {
|
info: {
|
||||||
contractTermsHash: "ASDZXCASD",
|
contractTermsHash: "ASDZXCASD",
|
||||||
merchant: {
|
merchant: {
|
||||||
|
@ -115,21 +115,6 @@ export function SettingsView({
|
|||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<section>
|
<section>
|
||||||
<SubTitle>
|
|
||||||
<i18n.Translate>Navigator</i18n.Translate>
|
|
||||||
</SubTitle>
|
|
||||||
<Checkbox
|
|
||||||
label={i18n.str`Automatically open wallet based on page content`}
|
|
||||||
name="autoOpen"
|
|
||||||
description={
|
|
||||||
<i18n.Translate>
|
|
||||||
Enabling this option below will make using the wallet faster, but
|
|
||||||
requires more permissions from your browser.
|
|
||||||
</i18n.Translate>
|
|
||||||
}
|
|
||||||
enabled={autoOpenToggle.value!}
|
|
||||||
onToggle={autoOpenToggle.button.onClick!}
|
|
||||||
/>
|
|
||||||
{/* <Checkbox
|
{/* <Checkbox
|
||||||
label={
|
label={
|
||||||
i18n.str`Automatically check clipboard for Taler URI`
|
i18n.str`Automatically check clipboard for Taler URI`
|
||||||
@ -225,17 +210,6 @@ export function SettingsView({
|
|||||||
</LinkPrimary>
|
</LinkPrimary>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<SubTitle>
|
|
||||||
<i18n.Translate>Troubleshooting</i18n.Translate>
|
|
||||||
</SubTitle>
|
|
||||||
<Checkbox
|
|
||||||
label={i18n.str`Developer mode`}
|
|
||||||
name="devMode"
|
|
||||||
description={i18n.str`More options and information useful for debugging`}
|
|
||||||
enabled={devModeToggle.value!}
|
|
||||||
onToggle={devModeToggle.button.onClick!}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<JustInDevMode>
|
<JustInDevMode>
|
||||||
<SubTitle>
|
<SubTitle>
|
||||||
<i18n.Translate>Display</i18n.Translate>
|
<i18n.Translate>Display</i18n.Translate>
|
||||||
@ -289,6 +263,33 @@ export function SettingsView({
|
|||||||
/>
|
/>
|
||||||
</JustInDevMode>
|
</JustInDevMode>
|
||||||
)}
|
)}
|
||||||
|
<SubTitle>
|
||||||
|
<i18n.Translate>Troubleshooting</i18n.Translate>
|
||||||
|
</SubTitle>
|
||||||
|
<Checkbox
|
||||||
|
label={i18n.str`Developer mode`}
|
||||||
|
name="devMode"
|
||||||
|
description={i18n.str`More options and information useful for debugging`}
|
||||||
|
enabled={devModeToggle.value!}
|
||||||
|
onToggle={devModeToggle.button.onClick!}
|
||||||
|
/>
|
||||||
|
<JustInDevMode>
|
||||||
|
<SubTitle>
|
||||||
|
<i18n.Translate>Navigator</i18n.Translate>
|
||||||
|
</SubTitle>
|
||||||
|
<Checkbox
|
||||||
|
label={i18n.str`Automatically open wallet based on page content`}
|
||||||
|
name="autoOpen"
|
||||||
|
description={
|
||||||
|
<i18n.Translate>
|
||||||
|
Enabling this option below will make using the wallet faster,
|
||||||
|
but requires more permissions from your browser.
|
||||||
|
</i18n.Translate>
|
||||||
|
}
|
||||||
|
enabled={autoOpenToggle.value!}
|
||||||
|
onToggle={autoOpenToggle.button.onClick!}
|
||||||
|
/>
|
||||||
|
</JustInDevMode>
|
||||||
</section>
|
</section>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
|
@ -89,6 +89,7 @@ const exampleData = {
|
|||||||
...commonTransaction,
|
...commonTransaction,
|
||||||
amountEffective: "KUDOS:12",
|
amountEffective: "KUDOS:12",
|
||||||
type: TransactionType.Payment,
|
type: TransactionType.Payment,
|
||||||
|
posConfirmation: undefined,
|
||||||
info: {
|
info: {
|
||||||
contractTermsHash: "ASDZXCASD",
|
contractTermsHash: "ASDZXCASD",
|
||||||
merchant: {
|
merchant: {
|
||||||
|
@ -486,7 +486,7 @@ export function TransactionView({
|
|||||||
<InfoBox>
|
<InfoBox>
|
||||||
<div style={{ display: "block" }}>
|
<div style={{ display: "block" }}>
|
||||||
<i18n.Translate>
|
<i18n.Translate>
|
||||||
Wire transfer need a confirmation. Go to the
|
Wire transfer need a confirmation. Go to the{" "}
|
||||||
<a
|
<a
|
||||||
href={transaction.withdrawalDetails.bankConfirmationUrl}
|
href={transaction.withdrawalDetails.bankConfirmationUrl}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
Loading…
Reference in New Issue
Block a user