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
+8 -1
View File
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from 'react';
import React, { useState, useEffect, ReactElement } from 'react';
import {
Table,
Tag,
@@ -23,6 +23,8 @@ import {
CREATE_ACCESS_TOKEN,
} from '../../utils/apis';
import { AdminLayout } from '../../components/layouts/AdminLayout';
const { Title, Paragraph } = Typography;
// Lazy loaded components
@@ -271,4 +273,9 @@ const AccessTokens = () => {
</div>
);
};
AccessTokens.getLayout = function getLayout(page: ReactElement) {
return <AdminLayout page={page} />;
};
export default AccessTokens;