From fb38fafd169987c60a5ca210d3d0fb70aac68b96 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com> Date: Sat, 13 Apr 2024 20:18:20 -0400 Subject: [PATCH] Fix modal bug --- src/shared/components/app/app.tsx | 20 +++++++++++-------- .../components/common/adult-consent-modal.tsx | 2 +- src/shared/components/home/site-form.tsx | 2 +- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/shared/components/app/app.tsx b/src/shared/components/app/app.tsx index c2238e4f..64d4b6b5 100644 --- a/src/shared/components/app/app.tsx +++ b/src/shared/components/app/app.tsx @@ -26,6 +26,10 @@ function handleAdultConsent(i: App) { i.setState({ showAdultConsentModal: false }); } +function handleAdultConsentGoBack(i: App) { + i.context.router.history.back(); +} + export class App extends Component { private isoData: IsoDataOptionalSite = setIsoData(this.context); private readonly mainContentRef: RefObject; @@ -81,6 +85,14 @@ export class App extends Component { )} + {siteRes?.site_view.site.content_warning && ( + + )}
{routes.map( @@ -140,14 +152,6 @@ export class App extends Component {