diff --git a/nym-wallet/src/components/Delegation/DelegateModal.tsx b/nym-wallet/src/components/Delegation/DelegateModal.tsx
index 4357a0319f..066c271e48 100644
--- a/nym-wallet/src/components/Delegation/DelegateModal.tsx
+++ b/nym-wallet/src/components/Delegation/DelegateModal.tsx
@@ -244,7 +244,7 @@ export const DelegateModal: React.FC<{
{errorAmount}
-
+
diff --git a/nym-wallet/src/components/Modals/ModalListItem.tsx b/nym-wallet/src/components/Modals/ModalListItem.tsx
index c764856761..6b60472348 100644
--- a/nym-wallet/src/components/Modals/ModalListItem.tsx
+++ b/nym-wallet/src/components/Modals/ModalListItem.tsx
@@ -1,21 +1,25 @@
import React from 'react';
-import { Box, Stack, Typography } from '@mui/material';
+import { Box, Stack, Typography, TypographyProps } from '@mui/material';
import { ModalDivider } from './ModalDivider';
+import { fontWeight } from '@mui/system';
+
+type TFontWeight = 'strong' | 'light';
export const ModalListItem: React.FC<{
label: string;
divider?: boolean;
hidden?: boolean;
- strong?: boolean;
+ fontWeight?: TypographyProps['fontWeight'];
+ light?: boolean;
value?: React.ReactNode;
-}> = ({ label, value, hidden, divider, strong }) => (
+}> = ({ label, value, hidden, fontWeight, divider }) => (
-
+
{label}
{value && (
-
+
{value}
)}
diff --git a/nym-wallet/src/components/Receive/ReceiveModal.tsx b/nym-wallet/src/components/Receive/ReceiveModal.tsx
index a37360f969..0b13cf87dd 100644
--- a/nym-wallet/src/components/Receive/ReceiveModal.tsx
+++ b/nym-wallet/src/components/Receive/ReceiveModal.tsx
@@ -1,42 +1,33 @@
import React, { useContext } from 'react';
import { AppContext } from 'src/context';
-import { Box, Stack, Typography, SxProps } from '@mui/material';
+import { Box, Stack, Typography, SxProps, Dialog, DialogTitle, DialogContent } from '@mui/material';
import QRCode from 'qrcode.react';
-import { SimpleModal } from '../Modals/SimpleModal';
import { ClientAddress } from '../ClientAddress';
+import { ModalListItem } from '../Modals/ModalListItem';
+import { Close as CloseIcon } from '@mui/icons-material';
-export const ReceiveModal = ({
- onClose,
- open,
- sx,
- backdropProps,
-}: {
- onClose: () => void;
- open: boolean;
- sx?: SxProps;
- backdropProps?: object;
-}) => {
+export const ReceiveModal = ({ onClose }: { onClose: () => void; sx?: SxProps; backdropProps?: object }) => {
const { clientDetails } = useContext(AppContext);
return (
-
-
-
- Your address:
-
-
-
- `1px solid ${t.palette.nym.highlight}`, borderRadius: 2, p: 2 }}>
+
-
+
+
);
};
diff --git a/nym-wallet/src/components/Receive/index.tsx b/nym-wallet/src/components/Receive/index.tsx
index 1dd7e38aba..7c32156c74 100644
--- a/nym-wallet/src/components/Receive/index.tsx
+++ b/nym-wallet/src/components/Receive/index.tsx
@@ -5,8 +5,7 @@ import { ReceiveModal } from './ReceiveModal';
export const Receive = ({ hasStorybookStyles }: { hasStorybookStyles?: {} }) => {
const { showReceiveModal, handleShowReceiveModal } = useContext(AppContext);
- if (showReceiveModal)
- return ;
+ if (showReceiveModal) return ;
return null;
};
diff --git a/nym-wallet/src/components/Send/SendInputModal.tsx b/nym-wallet/src/components/Send/SendInputModal.tsx
index 2910f2bfc1..523760b523 100644
--- a/nym-wallet/src/components/Send/SendInputModal.tsx
+++ b/nym-wallet/src/components/Send/SendInputModal.tsx
@@ -56,6 +56,7 @@ export const SendInputModal = ({
backdropProps={backdropProps}
>
+
-
-
-
+
+
Est. fee for this transaction will be show on the next page