fix: fix project identity wizard not resetting on close

This commit is contained in:
Scott Wilson
2025-11-13 12:52:40 +05:30
committed by =
parent 5d80786912
commit 3c79ffb16c
2 changed files with 12 additions and 4 deletions
@@ -543,7 +543,12 @@ export const IdentityTab = withProjectPermission(
animate={{ opacity: 1, translateX: 0 }} animate={{ opacity: 1, translateX: 0 }}
exit={{ opacity: 0, translateX: -30 }} exit={{ opacity: 0, translateX: -30 }}
> >
<ProjectIdentityModal onClose={() => handlePopUpClose("createIdentity")} /> <ProjectIdentityModal
onClose={() => {
handlePopUpClose("createIdentity");
setWizardStep(WizardSteps.SelectAction);
}}
/>
</motion.div> </motion.div>
)} )}
{wizardStep === WizardSteps.LinkIdentity && ( {wizardStep === WizardSteps.LinkIdentity && (
@@ -13,6 +13,7 @@ import {
FormLabel, FormLabel,
IconButton, IconButton,
Input, Input,
ModalClose,
Switch Switch
} from "@app/components/v2"; } from "@app/components/v2";
import { useProject } from "@app/context"; import { useProject } from "@app/context";
@@ -280,9 +281,11 @@ export const ProjectIdentityModal = ({ onClose, identity }: ContentProps) => {
> >
{isUpdate ? "Update" : "Create"} {isUpdate ? "Update" : "Create"}
</Button> </Button>
<Button colorSchema="secondary" variant="plain" onClick={() => onClose()}> <ModalClose asChild>
Cancel <Button colorSchema="secondary" variant="plain">
</Button> Cancel
</Button>
</ModalClose>
</div> </div>
</form> </form>
); );