File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
src/projects/detail/components/timeline Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 55 */
66import React from 'react'
77import PT from 'prop-types'
8- import _ from 'lodash'
9- import cn from 'classnames'
108
119import FormsyForm from 'appirio-tech-react-components/components/Formsy'
1210const TCFormFields = FormsyForm . Fields
1311
14- import styles from './FormFieldDate.scss'
1512
1613const FormFieldDate = ( props ) => {
1714
Original file line number Diff line number Diff line change @@ -106,14 +106,14 @@ class Milestone extends React.Component {
106106 const { milestone, currentUser } = this . props
107107 const isActive = milestone . status === MILESTONE_STATUS . ACTIVE
108108 const isCompleted = milestone . status === MILESTONE_STATUS . COMPLETED
109- return ( isActive || isCompleted ) && currentUser . isAdmin ;
109+ return ( isActive || isCompleted ) && currentUser . isAdmin
110110
111111 }
112112
113113 isCompletionDateEditable ( ) {
114114 const { milestone, currentUser } = this . props
115115 const isCompleted = milestone . status === MILESTONE_STATUS . COMPLETED
116- return isCompleted && currentUser . isAdmin ;
116+ return isCompleted && currentUser . isAdmin
117117 }
118118
119119 updateMilestoneWithData ( values ) {
@@ -224,8 +224,8 @@ class Milestone extends React.Component {
224224 const date = startDate . format ( 'D' )
225225 const title = milestone . name
226226 const isUpdating = milestone . isUpdating
227- const isActualDateEditable = this . isActualStartDateEditable ( ) ;
228- const isCompletionDateEditable = this . isCompletionDateEditable ( ) ;
227+ const isActualDateEditable = this . isActualStartDateEditable ( )
228+ const isCompletionDateEditable = this . isCompletionDateEditable ( )
229229 const editForm = (
230230 < Form
231231 fields = { [ {
You can’t perform that action at this time.
0 commit comments