Skip to content

Commit cc07793

Browse files
AJ Reverting back the change put in for testing NHS app issue
1 parent 5c1c050 commit cc07793

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

src/app/_components/nbs/NBSBookingAction.tsx

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff 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": {

0 commit comments

Comments
 (0)