Put PTT behind 'feature flag'
AKA does the URL hash start with '#ptt' This will let us merge PTT back to the main branch
This commit is contained in:
parent
363f2340a0
commit
43d579744f
3 changed files with 8 additions and 6 deletions
|
|
@ -13,6 +13,7 @@ import { JoinExistingCallModal } from "./JoinExistingCallModal";
|
|||
import { useHistory } from "react-router-dom";
|
||||
import { Headline, Title } from "../typography/Typography";
|
||||
import { Form } from "../form/Form";
|
||||
import { shouldShowPtt } from "../shouldShowPtt";
|
||||
|
||||
export function RegisteredView({ client }) {
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
|
@ -98,14 +99,14 @@ export function RegisteredView({ client }) {
|
|||
{loading ? "Loading..." : "Go"}
|
||||
</Button>
|
||||
</FieldRow>
|
||||
<FieldRow className={styles.fieldRow}>
|
||||
{shouldShowPtt() && <FieldRow className={styles.fieldRow}>
|
||||
<InputField
|
||||
id="ptt"
|
||||
name="ptt"
|
||||
label="Push to Talk"
|
||||
type="checkbox"
|
||||
/>
|
||||
</FieldRow>
|
||||
</FieldRow>}
|
||||
{error && (
|
||||
<FieldRow className={styles.fieldRow}>
|
||||
<ErrorMessage>{error.message}</ErrorMessage>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue