diff --git a/.nvmrc b/.nvmrc
deleted file mode 100644
index 62df50f1..00000000
--- a/.nvmrc
+++ /dev/null
@@ -1 +0,0 @@
-14.17.0
diff --git a/components/admin/permit-holders/Header.tsx b/components/admin/permit-holders/Header.tsx
index 8553ec85..33b93ad3 100644
--- a/components/admin/permit-holders/Header.tsx
+++ b/components/admin/permit-holders/Header.tsx
@@ -1,4 +1,3 @@
-import { useRouter } from 'next/router';
import {
Alert,
AlertIcon,
@@ -19,7 +18,6 @@ import { ChevronDownIcon, ChevronLeftIcon } from '@chakra-ui/icons'; // Chakra U
import Link from 'next/link'; // Link
import { ApplicantStatus } from '@lib/graphql/types';
import PermitHolderStatusBadge from '@components/admin/PermitHolderStatusBadge';
-import ConfirmDeleteApplicantModal from '@components/admin/permit-holders/table/ConfirmDeleteApplicantModal';
import SetPermitHolderToInactiveModal from '@components/admin/permit-holders/table/ConfirmSetInactiveModal';
import SetPermitHolderToActiveModal from '@components/admin/permit-holders/table/ConfirmSetActiveModal';
import AdditionalNotesModal from '@components/admin/permit-holders/additional-notes/Modal';
@@ -39,8 +37,6 @@ export default function PermitHolderHeader({
applicant: { id, name, status, inactiveReason, notes },
refetch,
}: PermitHolderHeaderProps) {
- const router = useRouter();
-
// Set Permit Holder Inactive/Active modal state
const {
isOpen: isSetPermitHolderStatusModalOpen,
@@ -48,13 +44,6 @@ export default function PermitHolderHeader({
onClose: onCloseSetPermitHolderStatusModal,
} = useDisclosure();
- // Delete applicant modal state
- const {
- isOpen: isDeleteApplicantModalOpen,
- onOpen: onOpenDeleteApplicantModal,
- onClose: onCloseDeleteApplicantModal,
- } = useDisclosure();
-
// Additional notes modal state
const {
isOpen: isNotesModalOpen,
@@ -108,13 +97,6 @@ export default function PermitHolderHeader({
>
{`Set as ${status === 'ACTIVE' ? 'Inactive' : 'Active'}`}
-
@@ -161,17 +143,6 @@ export default function PermitHolderHeader({
onClose={onCloseSetPermitHolderStatusModal}
/>
)}
- {
- /* Do not refetch, redirect to permit holders page */
- }}
- onClose={() => {
- onCloseDeleteApplicantModal();
- router.push('/admin/permit-holders');
- }}
- />
{/* Additional notes modal */}
- Gender: {gender === 'OTHER' && otherGender ? otherGender : titlecase(gender)}
+ Gender: {gender === 'OTHER' ? otherGender : titlecase(gender)}
diff --git a/components/admin/permit-holders/permit-holder-information/EditModal.tsx b/components/admin/permit-holders/permit-holder-information/EditModal.tsx
index ba6c1734..b6af3fd7 100644
--- a/components/admin/permit-holders/permit-holder-information/EditModal.tsx
+++ b/components/admin/permit-holders/permit-holder-information/EditModal.tsx
@@ -76,7 +76,6 @@ export default function EditUserInformationModal({
}}
validationSchema={permitHolderInformationSchema}
onSubmit={handleSubmit}
- validateOnMount
>
{({ values, isValid }) => (