add tos acceptance as part of sign up

This commit is contained in:
Abi Raja 2023-12-15 20:17:30 -05:00
parent 54017dbcd9
commit dc3de0b470
3 changed files with 17 additions and 3 deletions

View File

@ -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 && <PicoBadge settings={settings} />}
{IS_RUNNING_ON_CLOUD && (
<TermsOfServiceDialog
open={!settings.isTermOfServiceAccepted}
open={false}
onOpenChange={handleTermDialogOpenChange}
/>
)}

View File

@ -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" },
}}
/>
</AlertDialogContent>

View File

@ -10,7 +10,13 @@ import "./index.css";
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<ClerkProvider publishableKey={CLERK_PUBLISHABLE_KEY}>
<ClerkProvider
publishableKey={CLERK_PUBLISHABLE_KEY}
localization={{
footerPageLink__privacy:
"By signing up, you accept our terms of service and consent to receiving occasional product updates via email.",
}}
>
<Router>
<Routes>
<Route path="/" element={<AppContainer />} />