From 7953ae88554fdad34ae2306736214fe751507e8f Mon Sep 17 00:00:00 2001 From: redhoodsu Date: Sun, 27 Oct 2024 17:16:13 +0800 Subject: [PATCH] release(toolbar): v0.6.0 --- index.json | 2 +- src/toolbar/package.json | 2 +- src/toolbar/react.tsx | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) 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 }