Skip to content

Commit eddedfd

Browse files
committed
fix: optimization login btn style
1 parent 1f07d8e commit eddedfd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/src/components/Header/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const Header: FC = () => {
8181
setShowMobileSideNav(false);
8282
}, [location.pathname]);
8383

84-
let navbarStyle = 'theme-colored';
84+
let navbarStyle = 'theme-light';
8585
let themeMode = 'light';
8686
const { theme, theme_config } = themeSettingStore((_) => _);
8787
if (theme_config?.[theme]?.navbar_style) {
@@ -186,8 +186,8 @@ const Header: FC = () => {
186186
<>
187187
<Link
188188
className={classnames('me-2 btn btn-link', {
189-
'link-light': navbarStyle === 'theme-colored',
190-
'link-primary': navbarStyle !== 'theme-colored',
189+
'link-light': navbarStyle === 'theme-dark',
190+
'link-primary': navbarStyle !== 'theme-dark',
191191
})}
192192
onClick={() => floppyNavigation.storageLoginRedirect()}
193193
to={userCenter.getLoginUrl()}>
@@ -197,7 +197,7 @@ const Header: FC = () => {
197197
<Link
198198
className={classnames(
199199
'btn',
200-
navbarStyle === 'theme-colored' ? 'btn-light' : 'btn-primary',
200+
navbarStyle === 'theme-dark' ? 'btn-light' : 'btn-primary',
201201
)}
202202
to={userCenter.getSignUpUrl()}>
203203
{t('btns.signup')}

0 commit comments

Comments
 (0)