= ({
// Order Point
x: xType === 'base_amount' ? order.base_amount : order.premium,
y: sumOrders,
- order: order,
+ order,
},
];
diff --git a/frontend/src/components/Dialogs/AuditPGP.tsx b/frontend/src/components/Dialogs/AuditPGP.tsx
index 1e5c5a9d..8e22c6a7 100644
--- a/frontend/src/components/Dialogs/AuditPGP.tsx
+++ b/frontend/src/components/Dialogs/AuditPGP.tsx
@@ -37,7 +37,7 @@ function CredentialTextfield(props) {
InputProps={{
endAdornment: (
- copyToClipboard(props.value)}>
+ await copyToClipboard(props.value)}>
@@ -49,7 +49,7 @@ function CredentialTextfield(props) {
);
}
-type Props = {
+interface Props {
open: boolean;
onClose: () => void;
orderId: number;
@@ -59,7 +59,7 @@ type Props = {
peer_pub_key: string;
passphrase: string;
onClickBack: () => void;
-};
+}
const AuditPGPDialog = ({
open,
@@ -149,7 +149,7 @@ const AuditPGPDialog = ({
own_public_key: own_pub_key,
peer_public_key: peer_pub_key,
encrypted_private_key: own_enc_priv_key,
- passphrase: passphrase,
+ passphrase,
})
}
>
diff --git a/frontend/src/components/Dialogs/Community.tsx b/frontend/src/components/Dialogs/Community.tsx
index 13be9acb..d93fd9b3 100644
--- a/frontend/src/components/Dialogs/Community.tsx
+++ b/frontend/src/components/Dialogs/Community.tsx
@@ -19,10 +19,10 @@ import TwitterIcon from '@mui/icons-material/Twitter';
import RedditIcon from '@mui/icons-material/Reddit';
import Flags from 'country-flag-icons/react/3x2';
-type Props = {
+interface Props {
isOpen: boolean;
handleClickCloseCommunity: () => void;
-};
+}
const CommunityDialog = ({ isOpen, handleClickCloseCommunity }: Props): JSX.Element => {
const { t } = useTranslation();
diff --git a/frontend/src/components/Dialogs/ExchangeSummary.tsx b/frontend/src/components/Dialogs/ExchangeSummary.tsx
index 051aaf3b..64d7efd5 100644
--- a/frontend/src/components/Dialogs/ExchangeSummary.tsx
+++ b/frontend/src/components/Dialogs/ExchangeSummary.tsx
@@ -23,7 +23,7 @@ import LinkIcon from '@mui/icons-material/Link';
import { pn } from '../../utils/prettyNumbers';
-type Props = {
+interface Props {
isOpen: boolean;
handleClickCloseExchangeSummary: () => void;
numPublicBuyOrders: number;
@@ -34,7 +34,7 @@ type Props = {
makerFee: number;
takerFee: number;
swapFeeRate: number;
-};
+}
const ExchangeSummaryDialog = ({
isOpen,
diff --git a/frontend/src/components/Dialogs/Info.tsx b/frontend/src/components/Dialogs/Info.tsx
index 049f2b4c..d6f7bd98 100644
--- a/frontend/src/components/Dialogs/Info.tsx
+++ b/frontend/src/components/Dialogs/Info.tsx
@@ -18,11 +18,11 @@ import MediaQuery from 'react-responsive';
// Icons
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
-type Props = {
+interface Props {
maxAmount: string;
open: boolean;
onClose: () => void;
-};
+}
const InfoDialog = ({ maxAmount, open, onClose }: Props): JSX.Element => {
const { t } = useTranslation();
@@ -148,7 +148,7 @@ const InfoDialog = ({ maxAmount, open, onClose }: Props): JSX.Element => {
{t(
'Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).',
- { maxAmount: maxAmount },
+ { maxAmount },
)}{' '}
diff --git a/frontend/src/components/Dialogs/Learn.tsx b/frontend/src/components/Dialogs/Learn.tsx
index 94e69205..6bfbf8ec 100644
--- a/frontend/src/components/Dialogs/Learn.tsx
+++ b/frontend/src/components/Dialogs/Learn.tsx
@@ -10,10 +10,10 @@ import {
Link,
} from '@mui/material';
-type Props = {
+interface Props {
open: boolean;
onClose: () => void;
-};
+}
const LearnDialog = ({ open, onClose }: Props): JSX.Element => {
const { t } = useTranslation();
diff --git a/frontend/src/components/Dialogs/NoRobot.tsx b/frontend/src/components/Dialogs/NoRobot.tsx
index 051ffdb1..bfb66ae3 100644
--- a/frontend/src/components/Dialogs/NoRobot.tsx
+++ b/frontend/src/components/Dialogs/NoRobot.tsx
@@ -10,10 +10,10 @@ import {
} from '@mui/material';
import { Link } from 'react-router-dom';
-type Props = {
+interface Props {
open: boolean;
onClose: () => void;
-};
+}
const NoRobotDialog = ({ open, onClose }: Props): JSX.Element => {
const { t } = useTranslation();
diff --git a/frontend/src/components/Dialogs/Profile.tsx b/frontend/src/components/Dialogs/Profile.tsx
index 1c3fbba6..3838afc5 100644
--- a/frontend/src/components/Dialogs/Profile.tsx
+++ b/frontend/src/components/Dialogs/Profile.tsx
@@ -37,7 +37,7 @@ import { getCookie } from '../../utils/cookies';
import { copyToClipboard } from '../../utils/clipboard';
import { getWebln } from '../../utils/webln';
-type Props = {
+interface Props {
isOpen: boolean;
handleClickCloseProfile: () => void;
nickname: string;
@@ -53,7 +53,7 @@ type Props = {
stealthInvoices: boolean;
handleSetStealthInvoice: (stealth: boolean) => void;
setAppState: (state: any) => void; // TODO: move to a ContextProvider
-};
+}
const ProfileDialog = ({
isOpen,
@@ -330,7 +330,7 @@ const ProfileDialog = ({