Initial PTT designs

This commit is contained in:
Robert Long
2022-04-22 18:05:48 -07:00
parent fc1aaf02bf
commit 38f9a79bd3
13 changed files with 277 additions and 24 deletions

View File

@@ -28,6 +28,7 @@ export function UnauthenticatedView() {
const data = new FormData(e.target);
const roomName = data.get("callName");
const displayName = data.get("displayName");
const ptt = data.get("ptt") !== null;
async function submit() {
setError(undefined);
@@ -41,7 +42,7 @@ export function UnauthenticatedView() {
recaptchaResponse,
true
);
const roomIdOrAlias = await createRoom(client, roomName);
const roomIdOrAlias = await createRoom(client, roomName, ptt);
if (roomIdOrAlias) {
history.push(`/room/${roomIdOrAlias}`);
@@ -111,6 +112,14 @@ export function UnauthenticatedView() {
autoComplete="off"
/>
</FieldRow>
<FieldRow>
<InputField
id="ptt"
name="ptt"
label="Push to Talk"
type="checkbox"
/>
</FieldRow>
<Caption>
By clicking "Go", you agree to our{" "}
<Link href={privacyPolicyUrl}>Terms and conditions</Link>