Make each admin page specify is own layout. Closes #2584

This commit is contained in:
Gabe Kangas
2023-01-15 23:12:38 -08:00
parent 3b232f31e1
commit 2853752937
24 changed files with 167 additions and 37 deletions
+7 -1
View File
@@ -1,9 +1,11 @@
import { Col, Collapse, Row, Typography } from 'antd';
import React from 'react';
import React, { ReactElement } from 'react';
import { CodecSelector as VideoCodecSelector } from '../../components/admin/CodecSelector';
import { VideoLatency } from '../../components/admin/VideoLatency';
import { CurrentVariantsTable } from '../../components/admin/CurrentVariantsTable';
import { AdminLayout } from '../../components/layouts/AdminLayout';
const { Panel } = Collapse;
const { Title } = Typography;
@@ -48,3 +50,7 @@ export default function ConfigVideoSettings() {
</div>
);
}
ConfigVideoSettings.getLayout = function getLayout(page: ReactElement) {
return <AdminLayout page={page} />;
};