diff --git a/package.json b/package.json
index 87691a897..088a64962 100644
--- a/package.json
+++ b/package.json
@@ -133,7 +133,7 @@
"semver": "6.3.0",
"serve": "11.3.0",
"shelljs": "0.8.3",
- "socket.io-client": "2.3.1",
+ "socket.io-client": "3.1.2",
"source-map-explorer": "2.5.0",
"storage-factory": "0.1.1",
"style-loader": "0.23.1",
diff --git a/src/app/components/Button/index.module.css b/src/app/components/Button/index.module.css
index 3900e847e..636054cbf 100644
--- a/src/app/components/Button/index.module.css
+++ b/src/app/components/Button/index.module.css
@@ -28,3 +28,8 @@
.button.inverted:active {
background: rgba(254, 192, 4, 0.5);
}
+
+.button.disabled, .button:disabled {
+ opacity: 0.25;
+ cursor: not-allowed;
+}
diff --git a/src/app/components/Button/index.tsx b/src/app/components/Button/index.tsx
index 6ef94922f..ea4656361 100644
--- a/src/app/components/Button/index.tsx
+++ b/src/app/components/Button/index.tsx
@@ -21,6 +21,7 @@ export function Button({ text, inverted, loading, ...props }: Props) {
styles.button,
props.className,
inverted && styles.inverted,
+ props.disabled && styles.disabled,
)}
>
{text}
diff --git a/src/app/components/Form/AddressQrCode/index.module.css b/src/app/components/Form/AddressQrCode/index.module.css
new file mode 100644
index 000000000..432dfb55f
--- /dev/null
+++ b/src/app/components/Form/AddressQrCode/index.module.css
@@ -0,0 +1,26 @@
+/** */
+.qrCodeWrapper {
+
+}
+
+.qrCodeTitle {
+ font-size: 18px;
+ margin-bottom: 10px;
+ font-weight: 400;
+ line-height: 22px;
+}
+
+.qrCodeContainer {
+ background-color: #ffffff;
+ border-radius: 10px;
+ text-align: center;
+ margin-bottom: 20px;
+}
+
+.addressWrapper {
+ background-color: #222222;
+ padding: 12px 20px;
+ border: 1px solid #575757;
+ border-radius: 8px;
+ cursor: pointer;
+}
diff --git a/src/app/components/Form/AddressQrCode/index.tsx b/src/app/components/Form/AddressQrCode/index.tsx
new file mode 100644
index 000000000..732ad9152
--- /dev/null
+++ b/src/app/components/Form/AddressQrCode/index.tsx
@@ -0,0 +1,69 @@
+import React from 'react';
+import { Text } from '@blueprintjs/core';
+import QRCode from 'qrcode.react';
+import { CopyToClipboard } from 'react-copy-to-clipboard';
+import { useTranslation } from 'react-i18next';
+import { toastSuccess } from 'utils/toaster';
+import { translations } from 'locales/i18n';
+import styles from './index.module.css';
+
+interface Props {
+ address: string;
+ hideClickToCopy?: boolean;
+}
+
+export function AddressQrCode({ address, hideClickToCopy }: Props) {
+ const { t } = useTranslation();
+ return (
+ <>
+
setFastBtc(false)} />
>
);
}
interface AssetProps {
item: AssetDetails;
+ onFastBtc: () => void;
}
-function AssetRow({ item }: AssetProps) {
+function AssetRow({ item, onFastBtc }: AssetProps) {
const { t } = useTranslation();
const account = useAccount();
const [loading, setLoading] = useState(true);
@@ -161,14 +172,14 @@ function AssetRow({ item }: AssetProps) {
- {/*{item.asset === Asset.BTC && (*/}
- {/* |