add todos and change wording
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
import { useState } from "react";
 | 
			
		||||
 | 
			
		||||
export default function CTAForm() {
 | 
			
		||||
	// TODO
 | 
			
		||||
	const [{ isSubmitted }, setState] = useState({ isSubmitted: false });
 | 
			
		||||
	const onSubmit = () => setState({ isSubmitted: true });
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -40,7 +40,14 @@ export default function TwilioConnect() {
 | 
			
		||||
						<IoHelpCircle className="w-6 h-6 text-primary-700" />
 | 
			
		||||
					</button>
 | 
			
		||||
					<article className="mb-6">
 | 
			
		||||
						Shellphone needs some informations about your Twilio account to securely use your phone numbers.
 | 
			
		||||
						<p>
 | 
			
		||||
							To connect your Twilio Account you will need to provide us your Twilio account SID and auth
 | 
			
		||||
							token.
 | 
			
		||||
						</p>
 | 
			
		||||
						<p>
 | 
			
		||||
							Both values can be found on your{" "}
 | 
			
		||||
							<a href="https://www.twilio.com/user/account/settings">Twilio account page</a>.
 | 
			
		||||
						</p>
 | 
			
		||||
					</article>
 | 
			
		||||
 | 
			
		||||
					{twilio !== null ? (
 | 
			
		||||
 
 | 
			
		||||
@@ -190,7 +190,7 @@ async function handleOutgoingCall(formData: unknown, twilioSignature: string) {
 | 
			
		||||
			answerOnBridge: true,
 | 
			
		||||
			callerId: phoneNumber!.number,
 | 
			
		||||
		});
 | 
			
		||||
		dial.number(recipient);
 | 
			
		||||
		dial.number(recipient); // TODO: si le device n'est pas registered => call failed *shrug*
 | 
			
		||||
		console.log("twiml voiceResponse", voiceResponse.toString());
 | 
			
		||||
 | 
			
		||||
		return new Response(voiceResponse.toString(), { headers: { "Content-Type": "text/xml" } });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user