Skip to content

Commit 4a277bd

Browse files
committed
feat: update gaps in confiramtion modal
1 parent a4b7a84 commit 4a277bd

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

src/Common/Dialogs/ConfirmationDialog.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ import {
2323
ConfirmationDialogType,
2424
} from './Types'
2525

26+
/**
27+
* @deprecated use confirmation modal instead
28+
*/
2629
const ConfirmationDialog = ({ className = '', children, close }: ConfirmationDialogType) => (
2730
<VisibleModal2 className="confirmation-dialog" close={close}>
2831
<div onClick={stopPropagation} className={`confirmation-dialog__body ${className}`}>{children}</div>

src/Shared/Components/ConfirmationModal/ConfirmationModal.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,20 @@ const ConfirmationModalBody = ({
8282
initial={{ y: 100, opacity: 0, scale: 0.75 }}
8383
animate={{ y: 0, opacity: 1, scale: 1 }}
8484
>
85-
<div className="flexbox-col dc__gap-12 p-20">
85+
<div className="flexbox-col dc__gap-16 p-20">
8686
{cloneElement(RenderIcon, {
8787
className: `${RenderIcon.props?.className ?? ''} icon-dim-48 dc__no-shrink`,
8888
})}
89-
<span className="cn-9 fs-16 fw-6 lh-24 dc__word-break">{title}</span>
9089

91-
{typeof subtitle === 'string' ? (
92-
<span className="cn-8 fs-13 fw-4 lh-20 dc__word-break">{subtitle}</span>
93-
) : (
94-
subtitle
95-
)}
90+
<div className="flexbox-col dc__gap-8">
91+
<span className="cn-9 fs-16 fw-6 lh-24 dc__word-break">{title}</span>
92+
93+
{typeof subtitle === 'string' ? (
94+
<span className="cn-8 fs-13 fw-4 lh-20 dc__word-break">{subtitle}</span>
95+
) : (
96+
subtitle
97+
)}
98+
</div>
9699

97100
{children}
98101

0 commit comments

Comments
 (0)