Refactor DashboardNavigation to streamline notification context usage
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
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:
parent
be51fecba6
commit
482cc5dc86
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user