File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
apps/frontend/src/components/layout Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { useModals } from '@gitroom/frontend/components/layout/new-modal';
5
5
import { Button } from '@gitroom/react/form/button' ;
6
6
7
7
export const PreConditionComponentModal : FC = ( ) => {
8
+ const modal = useModals ( ) ;
8
9
return (
9
10
< div className = "flex flex-col gap-[16px]" >
10
11
< div className = "whitespace-pre-line" >
@@ -21,7 +22,7 @@ export const PreConditionComponentModal: FC = () => {
21
22
>
22
23
Fast track - Charge me now
23
24
</ Button >
24
- < Button secondary = { true } > Cancel</ Button >
25
+ < Button onClick = { modal . closeCurrent } secondary = { true } > Cancel</ Button >
25
26
</ div >
26
27
</ div >
27
28
) ;
@@ -33,11 +34,10 @@ export const PreConditionComponent: FC = () => {
33
34
if ( query . get ( 'precondition' ) ) {
34
35
modal . openModal ( {
35
36
title : 'Suspicious activity detected' ,
36
- withCloseButton : false ,
37
+ withCloseButton : true ,
37
38
classNames : {
38
39
modal : 'text-textColor' ,
39
40
} ,
40
- size : 'auto' ,
41
41
children : < PreConditionComponentModal /> ,
42
42
} ) ;
43
43
}
You can’t perform that action at this time.
0 commit comments