File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/shared/components/Gigs Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ export default function GigDetails(props) {
226
226
}
227
227
</ div >
228
228
{
229
- isLoginModalOpen && < LoginModal retUrl = { retUrl } />
229
+ isLoginModalOpen && < LoginModal retUrl = { retUrl } onCancel = { ( ) => setLoginModalOpen ( false ) } />
230
230
}
231
231
</ div >
232
232
</ div >
Original file line number Diff line number Diff line change @@ -19,10 +19,11 @@ const buttonThemes = {
19
19
tc,
20
20
} ;
21
21
22
- function LoginModal ( { retUrl } ) {
22
+ function LoginModal ( { retUrl, onCancel } ) {
23
23
return (
24
24
< Modal
25
25
theme = { modalStyle }
26
+ onCancel = { onCancel }
26
27
>
27
28
< div className = { modalStyle . loginRequired } >
28
29
< h3 className = { modalStyle . title } > WARNING</ h3 >
@@ -47,6 +48,7 @@ function LoginModal({ retUrl }) {
47
48
48
49
LoginModal . propTypes = {
49
50
retUrl : PT . string . isRequired ,
51
+ onCancel : PT . func . isRequired ,
50
52
} ;
51
53
52
54
export default LoginModal ;
You can’t perform that action at this time.
0 commit comments