diff --git a/src/shared/components/common/adult-consent-modal.tsx b/src/shared/components/common/adult-consent-modal.tsx index e9d8f1ac..4519b502 100644 --- a/src/shared/components/common/adult-consent-modal.tsx +++ b/src/shared/components/common/adult-consent-modal.tsx @@ -3,6 +3,7 @@ import { modalMixin } from "../mixins/modal-mixin"; import { adultConsentLocalStorageKey } from "../../config"; import { setIsoData } from "@utils/app"; import { IsoDataOptionalSite } from "../../interfaces"; +import { mdToHtml } from "../../markdown"; interface AdultConsentModalProps { contentWarning: string; @@ -29,11 +30,20 @@ class AdultConsentModalInner extends Component { data-bs-backdrop="static" ref={this.modalDivRef} > -
+
-
- {contentWarning} -
+
+

Content Warning

+
+
+ this.forceUpdate(), + )} + />