fix: install error title not update
This commit is contained in:
parent
d357f359ab
commit
13ccd294cb
@ -34,7 +34,7 @@ const InstallFromLocalPackage: React.FC<InstallFromLocalPackageProps> = ({
|
||||
if (step === InstallStep.installFailed)
|
||||
return t(`${i18nPrefix}.installFailed`)
|
||||
return t(`${i18nPrefix}.installPlugin`)
|
||||
}, [])
|
||||
}, [step])
|
||||
const [manifest, setManifest] = useState<PluginDeclaration | null>(toolNotionManifest)
|
||||
|
||||
const handleUploaded = useCallback((result: {
|
||||
|
@ -35,7 +35,7 @@ const InstallFromMarketplace: React.FC<InstallFromMarketplaceProps> = ({
|
||||
if (step === InstallStep.installFailed)
|
||||
return t(`${i18nPrefix}.installFailed`)
|
||||
return t(`${i18nPrefix}.installPlugin`)
|
||||
}, [])
|
||||
}, [step])
|
||||
|
||||
const handleInstalled = useCallback(() => {
|
||||
setStep(InstallStep.installed)
|
||||
|
Loading…
Reference in New Issue
Block a user