Skip to content

Commit

Permalink
release(toolbar): v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Oct 27, 2024
1 parent 84128eb commit 7953ae8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@
},
"toolbar": {
"react": true,
"version": "0.5.8",
"version": "0.6.0",
"style": true,
"icon": false,
"test": true,
Expand Down
2 changes: 1 addition & 1 deletion src/toolbar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toolbar",
"version": "0.5.8",
"version": "0.6.0",
"description": "Application toolbar",
"luna": {
"react": true
Expand Down
6 changes: 6 additions & 0 deletions src/toolbar/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ export const LunaToolbarText: FC<IToolbarTextProps> = (props) => {
return () => toolbarText.current?.detach()
}, [props.toolbar])

useEffect(() => {
if (toolbarText.current) {
toolbarText.current.setText(props.text)
}
}, [props.text])

return null
}

Expand Down

0 comments on commit 7953ae8

Please sign in to comment.