fix: add "Email" link to the sidebar and mobile navigation bar in administration panel

This commit is contained in:
Dorian Niemiec 2024-09-08 07:16:36 +02:00
parent 541c05e809
commit beeda59127
3 changed files with 8 additions and 3 deletions

View file

@ -25,7 +25,7 @@ const MobileNav = () => {
<> <>
<Logo width={155} height={53} /> <Logo width={155} height={53} />
<ul className="header-nav_elements"> <ul className="header-nav_elements">
{AdminLinks.slice(0, 6).map((link) => { {AdminLinks.slice(0, 7).map((link) => {
const isActive = link.url === pathname; const isActive = link.url === pathname;
return ( return (

View file

@ -17,7 +17,7 @@ const Sidebar = () => {
<nav className="sidebar-nav"> <nav className="sidebar-nav">
<ul className="sidebar-nav_elements"> <ul className="sidebar-nav_elements">
{AdminLinks.slice(0, 6).map((link) => { {AdminLinks.slice(0, 7).map((link) => {
const isActive = link.url === pathname; const isActive = link.url === pathname;
return ( return (
@ -37,7 +37,7 @@ const Sidebar = () => {
</ul> </ul>
<ul className="sidebar-nav_elements"> <ul className="sidebar-nav_elements">
{AdminLinks.slice(6).map((link) => { {AdminLinks.slice(7).map((link) => {
const isActive = link.url === pathname; const isActive = link.url === pathname;
return ( return (

View file

@ -205,6 +205,11 @@ export const AdminLinks = [
url: "/admin/vulnerabilities", url: "/admin/vulnerabilities",
icon: BugIcon icon: BugIcon
}, },
{
name: "Emails",
url: "/admin/email",
icon: Mail
},
{ {
name: "Back Home", name: "Back Home",
url: "/", url: "/",