Skip to content

Commit

Permalink
fix(#100): fix icon not work in loginConfig props
Browse files Browse the repository at this point in the history
  • Loading branch information
Flcwl committed Apr 20, 2022
1 parent e26b293 commit 104db6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 更新日志

## 3.7.1

- 修复 loginConfig props 中 icon 配置失效,icon 不展示 [#100](https://github.com/XiaoMi/hiui/issues/100)

## 3.7.0

- 添加 disabledAutoFallback props,支持禁用自动 fallback 到第一个有效路由 [#88](https://github.com/XiaoMi/hiui/issues/88)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hi-ui/classic-theme",
"version": "3.7.0",
"version": "3.7.1",
"description": "Classic theme for HIUI",
"main": "./es/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const Header = ({
setLoginVisible(!loginVisible)
}}
>
{typeof menu.icon === 'string' ? <Icon name={menu.icon} style={{ marginRight: 4 }} /> : menu.icon}
{typeof login.icon === 'string' ? <Icon name={login.icon} style={{ marginRight: 4 }} /> : login.icon}
{login.name}
<Icon name={'caret-down'} />
</div>
Expand Down

0 comments on commit 104db6b

Please sign in to comment.