diff --git a/apps/ui/components/application/ViewInner.tsx b/apps/ui/components/application/ViewInner.tsx index e652b9d6d..6983790f8 100644 --- a/apps/ui/components/application/ViewInner.tsx +++ b/apps/ui/components/application/ViewInner.tsx @@ -13,6 +13,7 @@ import { AccordionWithState as Accordion } from "../common/Accordion"; import { ApplicationEventList } from "./ApplicationEventList"; import TermsBox from "common/src/termsbox/TermsBox"; import Sanitize from "../common/Sanitize"; +import ClientOnly from "common/src/ClientOnly"; type Node = NonNullable; export function ViewInner({ @@ -41,22 +42,25 @@ export function ViewInner({ - {tos && ( - } - /> - )} - {tos2 && ( - } - /* TODO TermsBox has accepted and checkbox we could use but for now leaving the single - * page specfici checkbox to accept all terms */ - /> - )} + {/* NOTE TermsBox has hydration issues */} + + {tos && ( + } + /> + )} + {tos2 && ( + } + /* TODO TermsBox has accepted and checkbox we could use but for now leaving the single + * page specfici checkbox to accept all terms */ + /> + )} + {acceptTermsOfUse != null && setAcceptTermsOfUse != null && ( - html ? ( +function Sanitize({ html, style }: Props): JSX.Element | null { + if (!html) { + return null; + } + + return ( - ) : null; + ); +} export default Sanitize;