import * as React from 'react' ; import { ITimeComponentProps } from './IPropertyFieldDateTimePickerHost' ; import { Dropdown , IDropdownOption } from 'office-ui-fabric-react/lib/components/Dropdown' ; /**
 * Minutes component, renders the minutes dropdown
 */ export default class MinutesComponent extends React . Component < ITimeComponentProps , { } > { public render ( ) { let minutes = [ ] ; for ( let j = 0 ; j < 60 ; j ++ ) { let digitMin ; if ( j < 10 ) { digitMin = '0' + j ; } else { digitMin = j . toString ( ) ; } let selected = false ; if ( j === this . props . value ) { selected = true ; } minutes . push ( { key : j , text : digitMin , isSelected : selected } ) ; } return ( < Dropdown disabled = { this . props . disabled } label = '' options = { minutes } onChanged = { this . props . onChange } / > ) ; } }