fix: allow close login modal in electron

This commit is contained in:
Stephen Zhou
2025-11-19 09:37:54 +08:00
parent a3d0fbe573
commit b8a89e667c
@@ -198,10 +198,10 @@ export function MainDestopLayout() {
CustomModalComponent={PlainModal}
overlay
title="Login"
canClose={!IN_ELECTRON}
clickOutsideToDismiss={!IN_ELECTRON}
canClose={true}
clickOutsideToDismiss={true}
>
<LoginModalContent canClose={!IN_ELECTRON} runtime={IN_ELECTRON ? "app" : "browser"} />
<LoginModalContent canClose={true} runtime={IN_ELECTRON ? "app" : "browser"} />
</DeclarativeModal>
</RootPortal>
)}