mirror of https://github.com/langgenius/dify.git
refactor: rename renderI18nObject to getValueFromI18nObject for clarity
This commit is contained in:
parent
c458c28c62
commit
5fb356fd33
|
|
@ -65,9 +65,9 @@ const PluginItem: FC<Props> = ({
|
|||
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 (
|
||||
<div
|
||||
|
|
|
|||
Loading…
Reference in New Issue