+
- ) : (
-
- )
+ isDark
+ ? (
+
+ )
+ : (
+
+ )
}
/>
@@ -315,11 +319,13 @@ const renderMobileActions = ({ t, isTopDarkHeader, isDark, handleThemeToggle, mo
const renderHeaderActions = (isMobile, props) => (isMobile ? renderMobileActions(props) : renderDesktopActions(props))
const renderUserTrigger = (isAuthenticated, user, iconButtonStyle) =>
- isAuthenticated && user ? (
- } />
- ) : (
- } type="default" shape="round" style={iconButtonStyle} />
- )
+ isAuthenticated && user
+ ? (
+ } />
+ )
+ : (
+ } type='default' shape='round' style={iconButtonStyle} />
+ )
const ProHeader = ({ layout, onSettingClick, children, isMobile, onMobileMenuClick }) => {
const { t } = useTranslation()
@@ -360,13 +366,13 @@ const ProHeader = ({ layout, onSettingClick, children, isMobile, onMobileMenuCli
onSettingClick,
redirectGithub,
redirectWiki,
- redirectWrapped,
+ redirectWrapped
}),
[t, primaryNavItems, onSettingClick]
)
const {
- token: { colorBgContainer, colorBorder },
+ token: { colorBgContainer, colorBorder }
} = theme.useToken()
const { themeSettings, updateSettings } = useProThemeContext()
const isDark = themeSettings.themeMode === 'dark'
@@ -402,19 +408,19 @@ const ProHeader = ({ layout, onSettingClick, children, isMobile, onMobileMenuCli
style={{
backgroundColor: headerBackground,
borderBottom: headerBorder,
- padding: isMobile ? '0 16px' : 0,
+ padding: isMobile ? '0 16px' : 0
}}
>
{renderMobileMenuTrigger(isMobile, onMobileMenuClick)}
redirectTo('/')}
style={isMobile ? { flex: '0 0 auto', justifyContent: 'flex-start' } : {}}
>
{/* Pro React
{process.env.DEPLOYED_ENV} */}
- {!isMobile &&

}
-
+ {!isMobile &&

}
+
{renderDesktopNav(isMobile, layout, children)}
@@ -430,7 +436,7 @@ const ProHeader = ({ layout, onSettingClick, children, isMobile, onMobileMenuCli
redirectWiki,
redirectWrapped,
mobileMoreItems,
- setSearchOpen,
+ setSearchOpen
})}
{renderUserTrigger(isAuthenticated, user, iconButtonStyle)}
@@ -449,7 +455,7 @@ ProHeader.propTypes = {
onSettingClick: PropTypes.func,
children: PropTypes.node,
isMobile: PropTypes.bool,
- onMobileMenuClick: PropTypes.func,
+ onMobileMenuClick: PropTypes.func
}
export default ProHeader
diff --git a/src/pages/layout/proSecNav/index.jsx b/src/pages/layout/proSecNav/index.jsx
index 37eaf7ce0..e48916eb8 100644
--- a/src/pages/layout/proSecNav/index.jsx
+++ b/src/pages/layout/proSecNav/index.jsx
@@ -307,7 +307,7 @@ const ProSecNav = ({ mode = 'inline', theme = 'light', onMenuClick }) => {
return (