Skip to content

Commit

Permalink
PSP-7237 Remove duplicate confirmation prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
asanchezr committed Nov 22, 2023
1 parent 33d1335 commit ae91eae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Formik, FormikProps } from 'formik';
import * as React from 'react';
import { Prompt } from 'react-router-dom';
import styled from 'styled-components';

import { Api_ResearchFileProperty } from '@/models/api/ResearchFile';
Expand Down Expand Up @@ -47,11 +46,6 @@ export const UpdatePropertyResearchContainer = React.forwardRef<
{formikProps => (
<StyledFormWrapper>
<UpdatePropertyForm formikProps={formikProps} />

<Prompt
when={formikProps.dirty && formikProps.submitCount === 0}
message="You have made changes on this form. Do you wish to leave without saving?"
/>
</StyledFormWrapper>
)}
</Formik>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Formik, FormikProps } from 'formik';
import * as React from 'react';
import { Prompt } from 'react-router-dom';
import styled from 'styled-components';

import { Api_ResearchFile } from '@/models/api/ResearchFile';
Expand Down Expand Up @@ -45,11 +44,6 @@ export const UpdateResearchContainer = React.forwardRef<FormikProps<any>, IUpdat
{formikProps => (
<StyledFormWrapper>
<UpdateResearchForm formikProps={formikProps} />

<Prompt
when={formikProps.dirty && formikProps.submitCount === 0}
message="You have made changes on this form. Do you wish to leave without saving?"
/>
</StyledFormWrapper>
)}
</Formik>
Expand Down

0 comments on commit ae91eae

Please sign in to comment.