Fix variable naming inconsistency in DashboardNavigation component
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
- Updated `isFullscreen` to `isFullScreen` for consistency with context naming conventions. - Adjusted class logic in the navigation wrapper to reflect the updated variable name, ensuring proper styling application.
This commit is contained in:
parent
184a6621d9
commit
19ce749e80
@ -65,7 +65,7 @@ const DashboardNavigation = () => {
|
||||
icon: <ProductionIcon />
|
||||
})
|
||||
const isMobile = useMediaQuery({ maxWidth: 768 })
|
||||
const { platform, isElectron, setSidebarViewMenu, isFullscreen } =
|
||||
const { platform, isElectron, setSidebarViewMenu, isFullScreen } =
|
||||
useContext(ElectronContext)
|
||||
const { availableUpdate, checkForUpdates } = useAppUpdateContext()
|
||||
const mainMenuItems = useMemo(
|
||||
@ -369,7 +369,7 @@ const DashboardNavigation = () => {
|
||||
<>
|
||||
{isElectron ? (
|
||||
<Flex
|
||||
className={`ant-menu-horizontal ant-menu-light${!notificationCenterVisible && !isFullscreen ? ' electron-navigation-wrapper electrobun-webkit-app-region-drag' : ''}`}
|
||||
className={`ant-menu-horizontal electron-navigation-wrapper ant-menu-light${!notificationCenterVisible && !isFullScreen ? ' electrobun-webkit-app-region-drag' : ''}`}
|
||||
style={{ lineHeight: '40px', padding: '0 2px 0 2px' }}
|
||||
>
|
||||
{navigationContents}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user