fix: install error title not update

pull/9940/head
Joel 2 years ago
parent d357f359ab
commit 13ccd294cb

@ -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: {

@ -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)

Loading…
Cancel
Save