Add farm dashboard components including Anomaly Detection, Economic Overview, and Alerts Tracker. Implemented context for navbar slot management and integrated new API service for farm dashboard configuration. Updated navigation menus to include farm dashboard links.
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
'use client'
|
||||
|
||||
// Third-party Imports
|
||||
import classnames from 'classnames'
|
||||
import { useContext } from 'react'
|
||||
|
||||
// Context Imports
|
||||
import NavbarSlotContext from '@/contexts/navbarSlotContext'
|
||||
|
||||
// Type Imports
|
||||
import type { ShortcutsType } from '@components/layout/shared/ShortcutsDropdown'
|
||||
@@ -106,11 +112,14 @@ const notifications: NotificationsType[] = [
|
||||
]
|
||||
|
||||
const NavbarContent = () => {
|
||||
const { slotContent } = useContext(NavbarSlotContext)
|
||||
|
||||
return (
|
||||
<div className={classnames(verticalLayoutClasses.navbarContent, 'flex items-center justify-between gap-4 is-full')}>
|
||||
<div className='flex items-center gap-4'>
|
||||
<NavToggle />
|
||||
<NavSearch />
|
||||
{slotContent}
|
||||
</div>
|
||||
<div className='flex items-center'>
|
||||
<ModeDropdown/>
|
||||
|
||||
Reference in New Issue
Block a user