diff --git a/index.json b/index.json index c79dfec..fb6112a 100644 --- a/index.json +++ b/index.json @@ -380,7 +380,7 @@ }, "toolbar": { "react": true, - "version": "0.5.8", + "version": "0.6.0", "style": true, "icon": false, "test": true, diff --git a/src/toolbar/package.json b/src/toolbar/package.json index 8ae79dd..e07c5ce 100644 --- a/src/toolbar/package.json +++ b/src/toolbar/package.json @@ -1,6 +1,6 @@ { "name": "toolbar", - "version": "0.5.8", + "version": "0.6.0", "description": "Application toolbar", "luna": { "react": true diff --git a/src/toolbar/react.tsx b/src/toolbar/react.tsx index 6d3d083..32b26a5 100644 --- a/src/toolbar/react.tsx +++ b/src/toolbar/react.tsx @@ -82,6 +82,12 @@ export const LunaToolbarText: FC = (props) => { return () => toolbarText.current?.detach() }, [props.toolbar]) + useEffect(() => { + if (toolbarText.current) { + toolbarText.current.setText(props.text) + } + }, [props.text]) + return null }