diff --git a/src/components/common/MiniCard/MiniCard.tsx b/src/components/common/MiniCard/MiniCard.tsx index ca76cfb..04d7136 100644 --- a/src/components/common/MiniCard/MiniCard.tsx +++ b/src/components/common/MiniCard/MiniCard.tsx @@ -16,7 +16,7 @@ export default function MiniCard({ item }: { item: Item }) { function renderCard() { return ( -
+
{isSvg(item.imageSrc) ? }
- + {item.fullName ?? item.name} {t('miniCard.price', { price: item.price })} diff --git a/src/components/common/Modal/index.tsx b/src/components/common/Modal/index.tsx index f174d90..77942ed 100644 --- a/src/components/common/Modal/index.tsx +++ b/src/components/common/Modal/index.tsx @@ -29,7 +29,7 @@ function Modal(props: ModalType) { {...props} show={modal.show} onHide={onHide} - size="lg" + size={modalProps.size ?? 'lg'} aria-labelledby="contained-modal-title-vcenter" centered > diff --git a/src/components/common/web3/SendTransactionButton.tsx b/src/components/common/web3/SendTransactionButton.tsx index 83025ed..9d74ada 100644 --- a/src/components/common/web3/SendTransactionButton.tsx +++ b/src/components/common/web3/SendTransactionButton.tsx @@ -28,13 +28,17 @@ export default function SendTransactionButton({ } = useSendTransaction(); async function sendTransactionClick() { - await sendTransactionAsync({ - to: process.env.REACT_APP_WEB3_WALLET_BASE_ADDRESS as `0x${string}`, - value: parseEther(String(transactionSum)), - }); + try { + await sendTransactionAsync({ + to: process.env.REACT_APP_WEB3_WALLET_BASE_ADDRESS as `0x${string}`, + value: parseEther(String(transactionSum)), + }); - if (onConfirm) { - onConfirm(); + if (onConfirm) { + onConfirm(); + } + } catch (e) { + // errors handled by useSendTransaction().error prop } } diff --git a/src/components/pages/Home/FinishCycleModalButton.tsx b/src/components/pages/Home/FinishCycleModalButton.tsx index 8e548bb..d153324 100644 --- a/src/components/pages/Home/FinishCycleModalButton.tsx +++ b/src/components/pages/Home/FinishCycleModalButton.tsx @@ -20,6 +20,7 @@ function FinishCycleModalButton({ onFinishCycle }: Props) { const openModal = () => { dispatch(showModal({ + size: 'sm', onConfirm, header: t('finish_cycle_modal.header'), body: t('finish_cycle_modal.body'), diff --git a/src/components/pages/ReferralProgram/index.tsx b/src/components/pages/ReferralProgram/index.tsx index b6f905c..7e98f64 100644 --- a/src/components/pages/ReferralProgram/index.tsx +++ b/src/components/pages/ReferralProgram/index.tsx @@ -48,7 +48,7 @@ export default function ReferralProgram() { secondaryCurrency: t(`currencies.${CURRENCIES.BNB}`), })}

- +
);