+ { t('admin.site_settings.administration.helpcenter') }
+ { t('admin.site_settings.administration.change_helpcenter_link') }
+ useUpdateSiteSetting('HelpCenter')}
+ value={siteSettings?.HelpCenter}
+ />
+
>
);
}
diff --git a/app/javascript/components/home/NavbarSignedIn.jsx b/app/javascript/components/home/NavbarSignedIn.jsx
index 558cce760b..9d4ff8870b 100644
--- a/app/javascript/components/home/NavbarSignedIn.jsx
+++ b/app/javascript/components/home/NavbarSignedIn.jsx
@@ -25,10 +25,12 @@ import PropTypes from 'prop-types';
import { ChevronDownIcon } from '@heroicons/react/20/solid';
import useDeleteSession from '../../hooks/mutations/sessions/useDeleteSession';
import Avatar from '../users/user/Avatar';
+import useSiteSetting from '../../hooks/queries/site_settings/useSiteSetting';
export default function NavbarSignedIn({ currentUser }) {
const { t } = useTranslation();
const deleteSession = useDeleteSession({ showToast: true });
+ const { data: helpCenter } = useSiteSetting('HelpCenter');
const adminAccess = () => {
const { permissions } = currentUser;
@@ -61,10 +63,15 @@ export default function NavbarSignedIn({ currentUser }) {