feat navbar: add extensions button for fun

This commit is contained in:
prplwtf 2024-04-10 19:52:48 +02:00
parent 5bfe0d50f9
commit 64c230d73a

View file

@ -2,7 +2,7 @@ import * as React from 'react';
import { useState } from 'react';
import { Link, NavLink } from 'react-router-dom';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faCogs, faLayerGroup, faSignOutAlt } from '@fortawesome/free-solid-svg-icons';
import { faCogs, faLayerGroup, faSignOutAlt, faPuzzlePiece } from '@fortawesome/free-solid-svg-icons';
import { useStoreState } from 'easy-peasy';
import { ApplicationStore } from '@/state';
import SearchContainer from '@/components/dashboard/search/SearchContainer';
@ -78,6 +78,13 @@ export default () => {
</a>
</Tooltip>
)}
{rootAdmin && (
<Tooltip placement={'bottom'} content={'Extensions'}>
<a href={'/admin/extensions'} rel={'noreferrer'}>
<FontAwesomeIcon icon={faPuzzlePiece} />
</a>
</Tooltip>
)}
<AdditionalItems />
<Tooltip placement={'bottom'} content={'Account Settings'}>
<NavLink to={'/account'}>