Make each admin page specify is own layout. Closes #2584
This commit is contained in:
@@ -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} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user