fix: fix project identity wizard not resetting on close

This commit is contained in:
Scott Wilson
2025-11-06 16:36:17 -08:00
committed by =
parent 5d80786912
commit 3c79ffb16c
2 changed files with 12 additions and 4 deletions

View File

@@ -543,7 +543,12 @@ export const IdentityTab = withProjectPermission(
animate={{ opacity: 1, translateX: 0 }}
exit={{ opacity: 0, translateX: -30 }}
>
<ProjectIdentityModal onClose={() => handlePopUpClose("createIdentity")} />
<ProjectIdentityModal
onClose={() => {
handlePopUpClose("createIdentity");
setWizardStep(WizardSteps.SelectAction);
}}
/>
</motion.div>
)}
{wizardStep === WizardSteps.LinkIdentity && (

View File

@@ -13,6 +13,7 @@ import {
FormLabel,
IconButton,
Input,
ModalClose,
Switch
} from "@app/components/v2";
import { useProject } from "@app/context";
@@ -280,9 +281,11 @@ export const ProjectIdentityModal = ({ onClose, identity }: ContentProps) => {
>
{isUpdate ? "Update" : "Create"}
</Button>
<Button colorSchema="secondary" variant="plain" onClick={() => onClose()}>
Cancel
</Button>
<ModalClose asChild>
<Button colorSchema="secondary" variant="plain">
Cancel
</Button>
</ModalClose>
</div>
</form>
);