Put the settings tabs back in the right order
This commit is contained in:
@@ -118,7 +118,7 @@ export const SettingsModal = (props: Props) => {
|
|||||||
|
|
||||||
const devices = props.mediaDevicesSwitcher;
|
const devices = props.mediaDevicesSwitcher;
|
||||||
|
|
||||||
const tabs = [
|
const audioTab = (
|
||||||
<TabItem
|
<TabItem
|
||||||
key="audio"
|
key="audio"
|
||||||
title={
|
title={
|
||||||
@@ -130,7 +130,10 @@ export const SettingsModal = (props: Props) => {
|
|||||||
>
|
>
|
||||||
{devices && generateDeviceSelection(devices.audioIn, t("Microphone"))}
|
{devices && generateDeviceSelection(devices.audioIn, t("Microphone"))}
|
||||||
{devices && generateDeviceSelection(devices.audioOut, t("Speaker"))}
|
{devices && generateDeviceSelection(devices.audioOut, t("Speaker"))}
|
||||||
</TabItem>,
|
</TabItem>
|
||||||
|
);
|
||||||
|
|
||||||
|
const videoTab = (
|
||||||
<TabItem
|
<TabItem
|
||||||
key="video"
|
key="video"
|
||||||
title={
|
title={
|
||||||
@@ -141,7 +144,24 @@ export const SettingsModal = (props: Props) => {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
{devices && generateDeviceSelection(devices.videoIn, t("Camera"))}
|
{devices && generateDeviceSelection(devices.videoIn, t("Camera"))}
|
||||||
</TabItem>,
|
</TabItem>
|
||||||
|
);
|
||||||
|
|
||||||
|
const profileTab = (
|
||||||
|
<TabItem
|
||||||
|
key="profile"
|
||||||
|
title={
|
||||||
|
<>
|
||||||
|
<UserIcon width={15} height={15} />
|
||||||
|
<span>{t("Profile")}</span>
|
||||||
|
</>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<ProfileSettingsTab client={props.client} />
|
||||||
|
</TabItem>
|
||||||
|
);
|
||||||
|
|
||||||
|
const feedbackTab = (
|
||||||
<TabItem
|
<TabItem
|
||||||
key="feedback"
|
key="feedback"
|
||||||
title={
|
title={
|
||||||
@@ -152,7 +172,10 @@ export const SettingsModal = (props: Props) => {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<FeedbackSettingsTab roomId={props.roomId} />
|
<FeedbackSettingsTab roomId={props.roomId} />
|
||||||
</TabItem>,
|
</TabItem>
|
||||||
|
);
|
||||||
|
|
||||||
|
const moreTab = (
|
||||||
<TabItem
|
<TabItem
|
||||||
key="more"
|
key="more"
|
||||||
title={
|
title={
|
||||||
@@ -188,27 +211,10 @@ export const SettingsModal = (props: Props) => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</FieldRow>
|
</FieldRow>
|
||||||
</TabItem>,
|
|
||||||
];
|
|
||||||
|
|
||||||
if (!isEmbedded) {
|
|
||||||
tabs.push(
|
|
||||||
<TabItem
|
|
||||||
key="profile"
|
|
||||||
title={
|
|
||||||
<>
|
|
||||||
<UserIcon width={15} height={15} />
|
|
||||||
<span>{t("Profile")}</span>
|
|
||||||
</>
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<ProfileSettingsTab client={props.client} />
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
if (developerSettingsTab) {
|
const developerTab = (
|
||||||
tabs.push(
|
|
||||||
<TabItem
|
<TabItem
|
||||||
key="developer"
|
key="developer"
|
||||||
title={
|
title={
|
||||||
@@ -254,7 +260,15 @@ export const SettingsModal = (props: Props) => {
|
|||||||
</FieldRow>
|
</FieldRow>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
const tabs = [
|
||||||
|
audioTab,
|
||||||
|
videoTab,
|
||||||
|
...(isEmbedded ? [] : [profileTab]),
|
||||||
|
feedbackTab,
|
||||||
|
moreTab,
|
||||||
|
...(developerSettingsTab ? [developerTab] : []),
|
||||||
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
|
|||||||
Reference in New Issue
Block a user