From 5fb356fd33cb5333837fe045ff4778ff5740f50b Mon Sep 17 00:00:00 2001 From: twwu Date: Thu, 2 Jan 2025 18:07:44 +0800 Subject: [PATCH] refactor: rename renderI18nObject to getValueFromI18nObject for clarity --- web/app/components/plugins/plugin-item/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/components/plugins/plugin-item/index.tsx b/web/app/components/plugins/plugin-item/index.tsx index 1b853a4d4c..469af683b8 100644 --- a/web/app/components/plugins/plugin-item/index.tsx +++ b/web/app/components/plugins/plugin-item/index.tsx @@ -65,9 +65,9 @@ const PluginItem: FC = ({ if (PluginType.tool.includes(category)) invalidateAllToolProviders() } - const renderI18nObject = useRenderI18nObject() - const title = renderI18nObject(label) - const descriptionText = renderI18nObject(description) + const getValueFromI18nObject = useRenderI18nObject() + const title = getValueFromI18nObject(label) + const descriptionText = getValueFromI18nObject(description) return (