Refactor DashboardNavigation to streamline notification context usage
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good

- Removed unused `notificationCenterVisible` from the `DashboardNavigation` component, simplifying the context usage and improving code clarity.
This commit is contained in:
Tom Butcher 2026-08-04 02:54:11 +01:00
parent be51fecba6
commit 482cc5dc86

View File

@ -53,7 +53,7 @@ const DashboardNavigation = () => {
const { showSpotlight } = useContext(SpotlightContext)
const { connecting, connected } = useContext(ApiServerContext)
const { authenticated } = useContext(AuthContext)
const { toggleNotificationCenter, unreadCount, notificationCenterVisible } =
const { toggleNotificationCenter, unreadCount } =
useContext(NotificationContext)
const [apiServerState, setApiServerState] = useState('disconnected')
const navigate = useNavigate()