fix: install error title not update

This commit is contained in:
Joel 2024-10-23 17:55:25 +08:00
parent d357f359ab
commit 13ccd294cb
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ const InstallFromLocalPackage: React.FC<InstallFromLocalPackageProps> = ({
if (step === InstallStep.installFailed) if (step === InstallStep.installFailed)
return t(`${i18nPrefix}.installFailed`) return t(`${i18nPrefix}.installFailed`)
return t(`${i18nPrefix}.installPlugin`) return t(`${i18nPrefix}.installPlugin`)
}, []) }, [step])
const [manifest, setManifest] = useState<PluginDeclaration | null>(toolNotionManifest) const [manifest, setManifest] = useState<PluginDeclaration | null>(toolNotionManifest)
const handleUploaded = useCallback((result: { const handleUploaded = useCallback((result: {

View File

@ -35,7 +35,7 @@ const InstallFromMarketplace: React.FC<InstallFromMarketplaceProps> = ({
if (step === InstallStep.installFailed) if (step === InstallStep.installFailed)
return t(`${i18nPrefix}.installFailed`) return t(`${i18nPrefix}.installFailed`)
return t(`${i18nPrefix}.installPlugin`) return t(`${i18nPrefix}.installPlugin`)
}, []) }, [step])
const handleInstalled = useCallback(() => { const handleInstalled = useCallback(() => {
setStep(InstallStep.installed) setStep(InstallStep.installed)