add utility apps filter for header
This commit is contained in:
parent
b55eb16384
commit
7032b49554
1 changed files with 18 additions and 15 deletions
|
@ -6,6 +6,7 @@ import Gravatar from 'react-gravatar';
|
||||||
import { Link, useLocation } from 'react-router-dom';
|
import { Link, useLocation } from 'react-router-dom';
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import { useApps } from 'src/services/apps';
|
import { useApps } from 'src/services/apps';
|
||||||
|
import { UTILITY_APPS } from 'src/modules/dashboard/consts';
|
||||||
|
|
||||||
const navigation = [
|
const navigation = [
|
||||||
{ name: '', to: '/users', requiresAdmin: true },
|
{ name: '', to: '/users', requiresAdmin: true },
|
||||||
|
@ -64,7 +65,9 @@ const HeaderLIT: React.FC<HeaderProps> = () => {
|
||||||
</Link>
|
</Link>
|
||||||
<div className="hidden sm:ml-6 sm:flex sm:space-x-8">
|
<div className="hidden sm:ml-6 sm:flex sm:space-x-8">
|
||||||
{/* Current: "border-primary-500 text-gray-900", Default: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700" */}
|
{/* Current: "border-primary-500 text-gray-900", Default: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700" */}
|
||||||
{apps.map((app) => (
|
{apps
|
||||||
|
.filter((app) => UTILITY_APPS.indexOf(app.slug) === -1)
|
||||||
|
.map((app) => (
|
||||||
<Link
|
<Link
|
||||||
key={app.name}
|
key={app.name}
|
||||||
to={app.slug}
|
to={app.slug}
|
||||||
|
|
Loading…
Reference in a new issue