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

This commit is contained in:
Gabe Kangas
2023-01-15 23:11:44 -08:00
parent 3b232f31e1
commit 2853752937
24 changed files with 167 additions and 37 deletions

View File

@@ -1,5 +1,5 @@
import { Alert, Button, Col, Row, Typography } from 'antd';
import React, { useContext, useEffect, useState } from 'react';
import React, { ReactElement, useContext, useEffect, useState } from 'react';
import Link from 'next/link';
import Discord from '../../components/admin/notification/discord';
@@ -15,6 +15,8 @@ import { ServerStatusContext } from '../../utils/server-status-context';
import { UpdateArgs } from '../../types/config-section';
import { isValidUrl } from '../../utils/urls';
import { AdminLayout } from '../../components/layouts/AdminLayout';
const { Title } = Typography;
export default function ConfigNotify() {
@@ -147,3 +149,7 @@ export default function ConfigNotify() {
</>
);
}
ConfigNotify.getLayout = function getLayout(page: ReactElement) {
return <AdminLayout page={page} />;
};