diff --git a/components/Amount.tsx b/components/Amount.tsx
index 78c8e45a1..540da225a 100644
--- a/components/Amount.tsx
+++ b/components/Amount.tsx
@@ -181,12 +181,7 @@ export default class Amount extends React.Component {
UnitsStore.changeUnits()}
onLongPress={() => {
- if (lurkerMode) {
- SettingsStore.toggleLurker();
- }
- }}
- onPressOut={() => {
- if (!lurkerMode && lurkerExposed) {
+ if (!lurkerExposed && lurkerMode) {
SettingsStore.toggleLurker();
}
}}
@@ -240,17 +235,10 @@ export default class Amount extends React.Component {
UnitsStore.changeUnits()}
onLongPress={() => {
- if (lurkerMode) {
+ if (!lurkerExposed && lurkerMode) {
SettingsStore.toggleLurker();
}
}}
- onPressOut={() => {
- if (!lurkerMode && lurkerExposed) {
- setTimeout(() => {
- SettingsStore.toggleLurker();
- }, 3000);
- }
- }}
>
Total {kind}
+ SettingsStore: SettingsStore;
+}
+
+@inject('SettingsStore')
+@observer
+export default class KeyValue extends React.Component {
+ render() {
+ const { keyValue, value, color, sensitive, SettingsStore } = this.props;
+
+ const { lurkerMode } = SettingsStore?.settings?.privacy;
+
+ {
+ /* TODO: rig up RTL */
+ }
+ const isCopyable =
+ typeof value === 'string' || typeof value === 'number';
+ const rtl = false;
+ const Key = (
+
+
+ {keyValue}
+
+
+ );
+ const Value = isCopyable ? (
- {keyValue}
+ {sensitive ? PrivacyUtils.sensitiveValue(value) : value}
-