Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
fmt: Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
binarybaron committed Jun 12, 2024
1 parent 407f2bb commit 1dfcf0e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/cli/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export async function getSwapInfo(swapId: string) {
export async function getSwapInfoBatch(
swapIds: string[],
): Promise<GetSwapInfoResponse[]> {
if(swapIds.length === 0) {
if (swapIds.length === 0) {
logger.debug('No swaps present in history, skipping swap info retrieval');
return [];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ export default function RemainingFundsWillBeUsedAlert() {
action={<WalletRefreshButton />}
variant="filled"
>
The remaining funds of <SatsAmount amount={balance} /> in the wallet will be
used for the next swap. If the remaining funds exceed the minimum swap
amount of the provider, a swap will be initiated instantaneously.
The remaining funds of <SatsAmount amount={balance} /> in the wallet
will be used for the next swap. If the remaining funds exceed the
minimum swap amount of the provider, a swap will be initiated
instantaneously.
</Alert>
</Box>
);
Expand Down
8 changes: 6 additions & 2 deletions src/renderer/components/modal/provider/ProviderInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { makeStyles, Box, Typography, Chip, Tooltip } from '@material-ui/core';
import { VerifiedUser } from '@material-ui/icons';
import { satsToBtc, secondsToDays } from 'utils/conversionUtils';
import { ExtendedProviderStatus } from 'models/apiModel';
import { MoneroBitcoinExchangeRate, SatsAmount } from 'renderer/components/other/Units';
import {
MoneroBitcoinExchangeRate,
SatsAmount,
} from 'renderer/components/other/Units';

const useStyles = makeStyles((theme) => ({
content: {
Expand Down Expand Up @@ -38,7 +41,8 @@ export default function ProviderInfo({
{provider.peerId.substring(0, 8)}...{provider.peerId.slice(-8)}
</Typography>
<Typography variant="caption">
Exchange rate: <MoneroBitcoinExchangeRate rate={satsToBtc(provider.price)} />
Exchange rate:{' '}
<MoneroBitcoinExchangeRate rate={satsToBtc(provider.price)} />
<br />
Minimum swap amount: <SatsAmount amount={provider.minSwapAmount} />
<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ import {
import SwapLogFileOpenButton from './SwapLogFileOpenButton';
import { SwapCancelRefundButton } from './HistoryRowActions';
import { SwapMoneroRecoveryButton } from './SwapMoneroRecoveryButton';
import { BitcoinAmount, MoneroAmount, MoneroBitcoinExchangeRate } from 'renderer/components/other/Units';
import {
BitcoinAmount,
MoneroAmount,
MoneroBitcoinExchangeRate,
} from 'renderer/components/other/Units';

const useStyles = makeStyles((theme) => ({
outer: {
Expand Down
1 change: 0 additions & 1 deletion src/renderer/components/pages/wallet/WithdrawWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Box, Button, makeStyles, Typography } from '@material-ui/core';
import { useState } from 'react';
import SendIcon from '@material-ui/icons/Send';
import { useAppSelector, useIsRpcEndpointBusy } from 'store/hooks';
import { satsToBtc } from 'utils/conversionUtils';
import { RpcMethod } from 'models/rpcModel';
import BitcoinIcon from '../../icons/BitcoinIcon';
import WithdrawDialog from '../../modal/wallet/WithdrawDialog';
Expand Down

0 comments on commit 1dfcf0e

Please sign in to comment.