From dc3de0b470609e5014f24906a7ccf0f2a843f553 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Fri, 15 Dec 2023 20:17:30 -0500 Subject: [PATCH] add tos acceptance as part of sign up --- frontend/src/App.tsx | 4 ++-- frontend/src/components/hosted/AppContainer.tsx | 8 ++++++++ frontend/src/main.tsx | 8 +++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 1f7de80..9c64805 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -67,7 +67,7 @@ function App({ navbarComponent }: Props) { editorTheme: EditorTheme.COBALT, generatedCodeConfig: GeneratedCodeConfig.HTML_TAILWIND, // Only relevant for hosted version - isTermOfServiceAccepted: false, + isTermOfServiceAccepted: true, accessCode: null, }, "setting" @@ -329,7 +329,7 @@ function App({ navbarComponent }: Props) { {IS_RUNNING_ON_CLOUD && } {IS_RUNNING_ON_CLOUD && ( )} diff --git a/frontend/src/components/hosted/AppContainer.tsx b/frontend/src/components/hosted/AppContainer.tsx index f05bad5..2d6daf0 100644 --- a/frontend/src/components/hosted/AppContainer.tsx +++ b/frontend/src/components/hosted/AppContainer.tsx @@ -65,7 +65,15 @@ function AppContainer() { border: "none", backgroundColor: "transparent", }, + footer: { + display: "flex", + flexDirection: "column", + }, + footerAction: { + marginBottom: "5px", + }, }, + layout: { privacyPageUrl: "https://a.picoapps.xyz/camera-write" }, }} /> diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index da58943..b9946d3 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -10,7 +10,13 @@ import "./index.css"; ReactDOM.createRoot(document.getElementById("root")!).render( - + } />