@@ -30,34 +30,40 @@ export const TransactionReviewModal = (props: TransactionReviewModalProps) => {
30
30
const modalTitle = tradeState . matches ( 'review' ) ? 'Review Transaction' : ''
31
31
32
32
return (
33
- < Dialog onClose = { onCloseModal } open = { tradeState . context . isModalOpen } >
33
+ < Dialog
34
+ onClose = { onCloseModal }
35
+ open = { tradeState . context . isModalOpen }
36
+ className = 'relative z-50'
37
+ >
34
38
< DialogBackdrop className = 'fixed inset-0 bg-black/30' />
35
- < DialogPanel
36
- className = { cn (
37
- 'bg-ic-white mx-4 my-0 rounded-3xl border border-zinc-700 dark:bg-[#18181b]' ,
38
- isDarkMode ? 'review' : '' ,
39
- ) }
40
- >
41
- { modalTitle && (
42
- < DialogTitle className = { cn ( isDarkMode ? 'dark' : '' ) } >
43
- < span className = 'text-ic-black dark:text-neutral-50' >
44
- { modalTitle }
45
- </ span >
46
- </ DialogTitle >
47
- ) }
48
-
49
- < div className = { cn ( 'px-4 pb-4' , isDarkMode ? 'dark' : '' ) } >
50
- < SubmissionResult onClose = { onCloseModal } />
51
-
52
- { tradeState . context . transactionReview &&
53
- tradeState . matches ( 'review' ) && (
54
- < Review
55
- transactionReview = { tradeState . context . transactionReview }
56
- onSubmitWithSuccess = { ( ) => sendTradeEvent ( { type : 'SUBMIT' } ) }
57
- />
58
- ) }
59
- </ div >
60
- </ DialogPanel >
39
+ < div className = 'fixed inset-0 flex w-screen items-center justify-center p-4' >
40
+ < DialogPanel
41
+ className = { cn (
42
+ 'bg-ic-white mx-4 my-0 rounded-3xl border border-zinc-700 dark:bg-[#18181b]' ,
43
+ isDarkMode ? 'review' : '' ,
44
+ ) }
45
+ >
46
+ { modalTitle && (
47
+ < DialogTitle className = { cn ( isDarkMode ? 'dark' : '' ) } >
48
+ < span className = 'text-ic-black dark:text-neutral-50' >
49
+ { modalTitle }
50
+ </ span >
51
+ </ DialogTitle >
52
+ ) }
53
+
54
+ < div className = { cn ( 'px-4 pb-4' , isDarkMode ? 'dark' : '' ) } >
55
+ < SubmissionResult onClose = { onCloseModal } />
56
+
57
+ { tradeState . context . transactionReview &&
58
+ tradeState . matches ( 'review' ) && (
59
+ < Review
60
+ transactionReview = { tradeState . context . transactionReview }
61
+ onSubmitWithSuccess = { ( ) => sendTradeEvent ( { type : 'SUBMIT' } ) }
62
+ />
63
+ ) }
64
+ </ div >
65
+ </ DialogPanel >
66
+ </ div >
61
67
</ Dialog >
62
68
)
63
69
}
0 commit comments