diff --git a/public/locales/en-GB/app.json b/public/locales/en-GB/app.json index 3b7a137..279ffd3 100644 --- a/public/locales/en-GB/app.json +++ b/public/locales/en-GB/app.json @@ -102,7 +102,6 @@ "Turn off camera": "Turn off camera", "Turn on camera": "Turn on camera", "Unmute microphone": "Unmute microphone", - "Use the upcoming grid system": "Use the upcoming grid system", "User menu": "User menu", "Username": "Username", "Version: {{version}}": "Version: {{version}}", diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index f257e45..d9005c0 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -56,7 +56,7 @@ import { TileDescriptor, } from "../video-grid/VideoGrid"; import { Avatar } from "../Avatar"; -import { useNewGrid, useShowInspector } from "../settings/useSetting"; +import { useShowInspector } from "../settings/useSetting"; import { useModalTriggerState } from "../Modal"; import { PosthogAnalytics } from "../analytics/PosthogAnalytics"; import { useUrlParams } from "../UrlParams"; @@ -277,8 +277,8 @@ export function InCallView({ [] ); - const [newGrid] = useNewGrid(); - const Grid = newGrid ? NewVideoGrid : VideoGrid; + const Grid = + items.length > 12 && layout === "freedom" ? NewVideoGrid : VideoGrid; const prefersReducedMotion = usePrefersReducedMotion(); const renderContent = (): JSX.Element => { diff --git a/src/settings/SettingsModal.tsx b/src/settings/SettingsModal.tsx index 2ac546f..4dd9170 100644 --- a/src/settings/SettingsModal.tsx +++ b/src/settings/SettingsModal.tsx @@ -33,7 +33,6 @@ import { MediaDevicesState } from "./mediaDevices"; import { useShowInspector, useOptInAnalytics, - useNewGrid, useDeveloperSettingsTab, } from "./useSetting"; import { FieldRow, InputField } from "../input/Input"; @@ -60,7 +59,6 @@ export const SettingsModal = (props: Props) => { const [optInAnalytics, setOptInAnalytics] = useOptInAnalytics(); const [developerSettingsTab, setDeveloperSettingsTab] = useDeveloperSettingsTab(); - const [newGrid, setNewGrid] = useNewGrid(); const downloadDebugLog = useDownloadDebugLog(); @@ -235,17 +233,6 @@ export const SettingsModal = (props: Props) => { } /> - - ) => - setNewGrid(e.target.checked) - } - /> -