Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: optimization login btn style

shuaieddedfdf1b6a
diff --git a/ui/src/components/Header/index.tsx b/ui/src/components/Header/index.tsx
index bd2296b4..0b015ba6 100644
--- a/ui/src/components/Header/index.tsx
+++ b/ui/src/components/Header/index.tsx
@@ -81,7 +81,7 @@ const Header: FC = () => {
setShowMobileSideNav(false);
}, [location.pathname]);
- let navbarStyle = 'theme-colored';
+ let navbarStyle = 'theme-light';
let themeMode = 'light';
const { theme, theme_config } = themeSettingStore((_) => _);
if (theme_config?.[theme]?.navbar_style) {
@@ -186,8 +186,8 @@ const Header: FC = () => {
<>
<Link
className={classnames('me-2 btn btn-link', {
- 'link-light': navbarStyle === 'theme-colored',
- 'link-primary': navbarStyle !== 'theme-colored',
+ 'link-light': navbarStyle === 'theme-dark',
+ 'link-primary': navbarStyle !== 'theme-dark',
})}
onClick={() => floppyNavigation.storageLoginRedirect()}
to={userCenter.getLoginUrl()}>
@@ -197,7 +197,7 @@ const Header: FC = () => {
<Link
className={classnames(
'btn',
- navbarStyle === 'theme-colored' ? 'btn-light' : 'btn-primary',
+ navbarStyle === 'theme-dark' ? 'btn-light' : 'btn-primary',
)}
to={userCenter.getSignUpUrl()}>
{t('btns.signup')}