File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/components/AdditionalInfo Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,10 @@ import {
5
5
} from 'react-bootstrap'
6
6
import { addDays , apiV2CompatibleStrings , convertToBase64 } from '../../resources/utilityFunctions'
7
7
8
- const AdditionalInfo = ( { updateRequestForm } ) => {
8
+ const AdditionalInfo = ( { defaultRequiredDate , updateRequestForm } ) => {
9
9
const [ showProposalDate , setShowProposalDate ] = useState ( true )
10
10
const [ files , setFiles ] = useState ( [ ] )
11
11
const fileRef = useRef ( null )
12
- const oneWeekFromNow = addDays ( ( new Date ( ) ) , 7 ) . toISOString ( ) . slice ( 0 , 10 )
13
12
const oneDayFromNow = addDays ( ( new Date ( ) ) , 1 ) . toISOString ( ) . slice ( 0 , 10 )
14
13
15
14
const handleChange = ( value ) => {
@@ -54,7 +53,7 @@ const AdditionalInfo = ({ updateRequestForm }) => {
54
53
className = 'prevent-validation-styles'
55
54
type = 'date'
56
55
min = { oneDayFromNow }
57
- defaultValue = { oneWeekFromNow }
56
+ defaultValue = { defaultRequiredDate }
58
57
placeholder = 'Proposals Required By'
59
58
disabled = { showProposalDate === false }
60
59
onChange = { showProposalDate && ( ( e ) => handleChange ( e . target . value ) ) }
You can’t perform that action at this time.
0 commit comments