fix: install marketplace bundle title

This commit is contained in:
Joel 2024-11-26 14:11:21 +08:00
parent 4b77ced4ad
commit d40f0e645c
1 changed files with 3 additions and 1 deletions

View File

@ -41,12 +41,14 @@ const InstallFromMarketplace: React.FC<InstallFromMarketplaceProps> = ({
// TODO: check installed in beta version.
const getTitle = useCallback(() => {
if (isBundle && step === InstallStep.installed)
return t(`${i18nPrefix}.installComplete`)
if (step === InstallStep.installed)
return t(`${i18nPrefix}.installedSuccessfully`)
if (step === InstallStep.installFailed)
return t(`${i18nPrefix}.installFailed`)
return t(`${i18nPrefix}.installPlugin`)
}, [step, t])
}, [isBundle, step, t])
const handleInstalled = useCallback(() => {
setStep(InstallStep.installed)