Skip to content

Commit d04d18d

Browse files
committed
fix: Navigation dropdown menu theme color should follow the theme color of the application #1355
1 parent 05fab1c commit d04d18d

File tree

1 file changed

+2
-2
lines changed
  • ui/src/components/Header/components/NavItems

1 file changed

+2
-2
lines changed

ui/src/components/Header/components/NavItems/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { NavLink, useNavigate } from 'react-router-dom';
2424

2525
import type * as Type from '@/common/interface';
2626
import { Avatar, Icon } from '@/components';
27-
import { floppyNavigation } from '@/utils';
27+
import { floppyNavigation, isDarkTheme } from '@/utils';
2828
import { userCenterStore } from '@/stores';
2929
import { REACT_BASE_PATH } from '@/router/alias';
3030

@@ -80,7 +80,7 @@ const Index: FC<Props> = ({ redDot, userInfo, logOut }) => {
8080
</NavLink>
8181
</Nav>
8282

83-
<Dropdown align="end">
83+
<Dropdown align="end" data-bs-theme={isDarkTheme() ? 'dark' : 'light'}>
8484
<Dropdown.Toggle
8585
variant="success"
8686
id="dropdown-basic"

0 commit comments

Comments
 (0)