diff --git a/app/soapbox/pages/admin_page.js b/app/soapbox/pages/admin_page.js deleted file mode 100644 index 0b9362ca9..000000000 --- a/app/soapbox/pages/admin_page.js +++ /dev/null @@ -1,51 +0,0 @@ -import React from 'react'; -import ImmutablePureComponent from 'react-immutable-pure-component'; - -import BundleContainer from 'soapbox/features/ui/containers/bundle_container'; -import { - AdminNav, - LatestAccountsPanel, -} from 'soapbox/features/ui/util/async-components'; - -import LinkFooter from '../features/ui/components/link_footer'; - -export default -class AdminPage extends ImmutablePureComponent { - - render() { - const { children } = this.props; - - return ( -
-
-
- -
-
- - {Component => } - -
-
- -
-
- {children} -
-
- -
-
- - {Component => } - - -
-
-
-
-
- ); - } - -} diff --git a/app/soapbox/pages/admin_page.tsx b/app/soapbox/pages/admin_page.tsx new file mode 100644 index 000000000..5d4d3c879 --- /dev/null +++ b/app/soapbox/pages/admin_page.tsx @@ -0,0 +1,45 @@ +import React from 'react'; + +import BundleContainer from 'soapbox/features/ui/containers/bundle_container'; +import { + AdminNav, + LatestAccountsPanel, +} from 'soapbox/features/ui/util/async-components'; + +import LinkFooter from '../features/ui/components/link_footer'; + +const AdminPage: React.FC = ({ children }) => { + return ( +
+
+
+ +
+
+ + {Component => } + +
+
+ +
+
+ {children} +
+
+ +
+
+ + {Component => } + + +
+
+
+
+
+ ); +}; + +export default AdminPage;