File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed
Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,6 @@ const NBSBookingAction = ({
8282 window . open ( url , isOpenInMobileApp ? "_self" : "_blank" ) ;
8383 } ;
8484
85- const testHandleClick = ( e : ActionClickEvent ) => {
86- if ( ! hasContextLoaded ) return false ;
87- e . preventDefault ( ) ; // prevent default click behaviour
88- const url = `${ SSO_TO_NBS_ROUTE } ?redirectTarget=${ encodeURI ( "https://f.nhswebsite-integration.nhs.uk/nbs/nhs-app/flu" ) } ` ;
89- window . open ( url , isOpenInMobileApp ? "_self" : "_blank" ) ;
90- } ;
91-
9285 switch ( renderAs ) {
9386 case "anchor" : {
9487 return (
@@ -100,15 +93,9 @@ const NBSBookingAction = ({
10093 case "button" : {
10194 const className = `nhsuk-button nhsapp-button${ reduceBottomPadding ? " nhsuk-u-margin-bottom-2" : "" } ` ;
10295 return (
103- < >
104- < button className = { className } onClick = { handleClick } >
105- { displayText }
106- </ button > { " " }
107- { /* TODO: For testing overlays in app, delete when done */ }
108- < button className = { className } onClick = { testHandleClick } >
109- Test should not open in overlay
110- </ button >
111- </ >
96+ < button className = { className } onClick = { handleClick } >
97+ { displayText }
98+ </ button >
11299 ) ;
113100 }
114101 case "actionLink" : {
You can’t perform that action at this time.
0 commit comments