fix: load duplicate components on demand

This commit is contained in:
qinluhe 2024-07-26 10:56:26 +08:00
parent 9d3a810847
commit a35e2d597e

View File

@ -23,7 +23,7 @@ function Duplicate() {
{t('publish.saveThisPage')}
</Button>
<LoginModal redirectTo={url} open={loginOpen} onClose={handleLoginClose} />
<DuplicateModal open={duplicateOpen} onClose={handleDuplicateClose} />
{duplicateOpen && <DuplicateModal open={duplicateOpen} onClose={handleDuplicateClose} />}
</>
);
}