diff --git a/app/javascript/App.jsx b/app/javascript/App.jsx
index 045c787f553..dc7fc62ad79 100644
--- a/app/javascript/App.jsx
+++ b/app/javascript/App.jsx
@@ -81,7 +81,7 @@ export default function App() {
newestOnTop
autoClose={3000}
/>
-
+
>
);
}
diff --git a/app/javascript/components/shared_components/Footer.jsx b/app/javascript/components/shared_components/Footer.jsx
index 30a3b5b2b41..1d308bd5c9b 100644
--- a/app/javascript/components/shared_components/Footer.jsx
+++ b/app/javascript/components/shared_components/Footer.jsx
@@ -17,19 +17,21 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Container } from 'react-bootstrap';
+import PropTypes from 'prop-types';
import useEnv from '../../hooks/queries/env/useEnv';
import useSiteSetting from '../../hooks/queries/site_settings/useSiteSetting';
-export default function Footer() {
+export default function Footer({ currentUser = null }) {
const { t } = useTranslation();
const { data: env } = useEnv();
const { data: links } = useSiteSetting(['Terms', 'PrivacyPolicy']);
+ const isAdmin = currentUser && currentUser.role && currentUser?.role.name === 'Administrator';
return (
);
}
+
+Footer.propTypes = {
+ currentUser: PropTypes.func.isRequired,
+};