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,8 +1,10 @@
import React, { useState, useEffect } from 'react';
import React, { useState, useEffect, ReactElement } from 'react';
import ReactMarkdown from 'react-markdown';
import { Table, Typography } from 'antd';
import { getGithubRelease } from '../../utils/apis';
import { AdminLayout } from '../../components/layouts/AdminLayout';
const { Title } = Typography;
const AssetTable = assets => {
@@ -72,4 +74,9 @@ const Logs = () => {
</div>
);
};
Logs.getLayout = function getLayout(page: ReactElement) {
return <AdminLayout page={page} />;
};
export default Logs;