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,4 +1,4 @@
import React, { useEffect, useState } from 'react';
import React, { ReactElement, useEffect, useState } from 'react';
import { Table, Typography } from 'antd';
import { ColumnsType } from 'antd/lib/table/interface';
import format from 'date-fns/format';
@@ -6,6 +6,8 @@ import { FEDERATION_ACTIONS, fetchData } from '../../../utils/apis';
import { isEmptyObject } from '../../../utils/format';
import { AdminLayout } from '../../../components/layouts/AdminLayout';
const { Title, Paragraph } = Typography;
export interface Action {
@@ -134,3 +136,7 @@ export default function FediverseActions() {
</div>
);
}
FediverseActions.getLayout = function getLayout(page: ReactElement) {
return <AdminLayout page={page} />;
};