From 3390333e741c08ada1aa8d47ce19f88eba67a07f Mon Sep 17 00:00:00 2001
From: Ben Derham <1805685+benderham@users.noreply.github.com>
Date: Mon, 16 Sep 2024 12:29:53 +0800
Subject: [PATCH 1/8] updates auth newsletter subscription form
---
packages/auth/src/pages/InitPage.tsx | 98 ++++++++++++++++++----------
1 file changed, 63 insertions(+), 35 deletions(-)
diff --git a/packages/auth/src/pages/InitPage.tsx b/packages/auth/src/pages/InitPage.tsx
index cc92c2ee987..ad0436efd30 100644
--- a/packages/auth/src/pages/InitPage.tsx
+++ b/packages/auth/src/pages/InitPage.tsx
@@ -4,9 +4,9 @@
import { useMemo, useState } from 'react'
import fetch from 'cross-fetch'
-import { jsx, H1, Stack, Inline, VisuallyHidden } from '@keystone-ui/core'
+import { jsx, H1, Stack, Inline } from '@keystone-ui/core'
import { Button } from '@keystone-ui/button'
-import { Checkbox, TextInput } from '@keystone-ui/fields'
+import { Checkbox, FieldLabel, TextInput } from '@keystone-ui/fields'
import { type FieldMeta } from '@keystone-6/core/types'
import isDeepEqual from 'fast-deep-equal'
@@ -24,10 +24,15 @@ import { IconTwitter, IconGithub } from '../components/Icons'
import { SigninContainer } from '../components/SigninContainer'
import { useRedirect } from '../lib/useFromRedirect'
-const signupURL = 'https://signup.keystonejs.cloud/api/newsletter-signup'
+const signupURL = 'https://endpoints.thinkmill.com.au/newsletter'
function Welcome ({ value, onContinue }: { value: any, onContinue: () => void }) {
- const [subscribe, setSubscribe] = useState(false)
+ const [subscribe, setSubscribe] = useState<{ keystone: boolean, thinkmill: boolean}>(
+ {
+ keystone: false,
+ thinkmill: false,
+ }
+ )
const [email, setEmail] = useState
- Thanks for installing KeystoneJS. While you're getting started, check out the docs at{' '}
+ Thanks for installing Keystone. For help getting started check out the docs at{' '}
keystonejs.com
+ To stay connected to the latest Keystone and Thinkmill news, signup to our newsletters:
+
- Thanks for installing Keystone. For help getting started check out the docs at{' '}
+ Thanks for installing Keystone. For help getting started check out the docs at{' '}
keystonejs.com
Welcome
- To stay connected to the latest Keystone and Thinkmill news, signup to our newsletters: + To stay connected to the latest Keystone and Thinkmill news, signup to our newsletters: