File tree Expand file tree Collapse file tree 6 files changed +11
-16
lines changed Expand file tree Collapse file tree 6 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 82
82
"dependencies" : {
83
83
"babel-runtime" : " ^5.6.18" ,
84
84
"classnames" : " ^2.1.2" ,
85
- "moment" : " ^2.8.2" ,
86
- "react-bootstrap" : " ^0.16.1"
85
+ "moment" : " ^2.8.2"
87
86
}
88
87
}
Original file line number Diff line number Diff line change 1
1
import React , { Component , PropTypes } from "react" ;
2
2
import moment from "moment" ;
3
- import { Glyphicon } from "react-bootstrap " ;
3
+ import classnames from "classnames " ;
4
4
import DateTimePicker from "./DateTimePicker.js" ;
5
5
import Constants from "./Constants.js" ;
6
6
@@ -54,7 +54,7 @@ export default class DateTimeField extends Component {
54
54
showDatePicker : this . props . mode !== Constants . MODE_TIME ,
55
55
showTimePicker : this . props . mode === Constants . MODE_TIME ,
56
56
inputFormat : this . resolvePropsInputFormat ( ) ,
57
- buttonIcon : this . props . mode === Constants . MODE_TIME ? "time" : "calendar" ,
57
+ buttonIcon : this . props . mode === Constants . MODE_TIME ? "glyphicon- time" : "glyphicon- calendar" ,
58
58
widgetStyle : {
59
59
display : "block" ,
60
60
position : "absolute" ,
@@ -375,7 +375,7 @@ export default class DateTimeField extends Component {
375
375
< div className = { "input-group date " + this . size ( ) } ref = "datetimepicker" >
376
376
< input className = "form-control" onChange = { this . onChange } type = "text" value = { this . state . inputValue } { ...this . props . inputProps } />
377
377
< span className = "input-group-addon" onBlur = { this . onBlur } onClick = { this . onClick } ref = "dtpbutton" >
378
- < Glyphicon glyph = { this . state . buttonIcon } />
378
+ < span className = { classnames ( "glyphicon" , this . state . buttonIcon ) } />
379
379
</ span >
380
380
</ div >
381
381
</ div >
Original file line number Diff line number Diff line change 1
1
import React , { Component , PropTypes } from "react" ;
2
- import { Glyphicon } from "react-bootstrap" ;
3
2
import classnames from "classnames" ;
4
3
import DateTimePickerDate from "./DateTimePickerDate.js" ;
5
4
import DateTimePickerTime from "./DateTimePickerTime.js" ;
@@ -93,7 +92,7 @@ export default class DateTimePicker extends Component {
93
92
return this . props . mode === Constants . MODE_DATETIME ?
94
93
(
95
94
< li >
96
- < span className = "btn picker-switch" style = { { width : "100%" } } onClick = { this . props . togglePicker } > < Glyphicon glyph = { this . props . showTimePicker ? "calendar" : "time" } /> </ span >
95
+ < span className = "btn picker-switch" style = { { width : "100%" } } onClick = { this . props . togglePicker } > < span className = { classnames ( "glyphicon" , this . props . showTimePicker ? "glyphicon- calendar" : "glyphicon- time" ) } /> </ span >
97
96
</ li >
98
97
) :
99
98
null ;
Original file line number Diff line number Diff line change 1
1
import React , { Component , PropTypes } from "react" ;
2
- import { Glyphicon } from "react-bootstrap" ;
3
2
import Constants from "./Constants.js" ;
4
3
5
4
export default class DateTimePickerHours extends Component {
@@ -14,7 +13,7 @@ export default class DateTimePickerHours extends Component {
14
13
(
15
14
< ul className = "list-unstyled" >
16
15
< li >
17
- < span className = "btn picker-switch" style = { { width : "100%" } } onClick = { this . props . onSwitch } > < Glyphicon glyph = " time" /> </ span >
16
+ < span className = "btn picker-switch" style = { { width : "100%" } } onClick = { this . props . onSwitch } > < span className = "glyphicon glyphicon- time" /> </ span >
18
17
</ li >
19
18
</ ul >
20
19
) :
Original file line number Diff line number Diff line change 1
1
import React , { Component , PropTypes } from "react" ;
2
- import { Glyphicon } from "react-bootstrap" ;
3
2
import Constants from "./Constants.js" ;
4
3
5
4
export default class DateTimePickerMinutes extends Component {
@@ -14,7 +13,7 @@ export default class DateTimePickerMinutes extends Component {
14
13
(
15
14
< ul className = "list-unstyled" >
16
15
< li >
17
- < span className = "btn picker-switch" style = { { width : "100%" } } onClick = { this . props . onSwitch } > < Glyphicon glyph = " time" /> </ span >
16
+ < span className = "btn picker-switch" style = { { width : "100%" } } onClick = { this . props . onSwitch } > < span className = "glyphicon glyphicon- time" /> </ span >
18
17
</ li >
19
18
</ ul >
20
19
) :
Original file line number Diff line number Diff line change 1
1
import React , { Component , PropTypes } from "react" ;
2
- import { Glyphicon } from "react-bootstrap" ;
3
2
import DateTimePickerMinutes from "./DateTimePickerMinutes" ;
4
3
import DateTimePickerHours from "./DateTimePickerHours" ;
5
4
import Constants from "./Constants.js" ;
@@ -65,11 +64,11 @@ export default class DateTimePickerTime extends Component {
65
64
< table className = "table-condensed" >
66
65
< tbody >
67
66
< tr >
68
- < td > < a className = "btn" onClick = { this . props . addHour } > < Glyphicon glyph = " chevron-up" /> </ a > </ td >
67
+ < td > < a className = "btn" onClick = { this . props . addHour } > < span className = "glyphicon glyphicon- chevron-up" /> </ a > </ td >
69
68
70
69
< td className = "separator" > </ td >
71
70
72
- < td > < a className = "btn" onClick = { this . props . addMinute } > < Glyphicon glyph = " chevron-up" /> </ a > </ td >
71
+ < td > < a className = "btn" onClick = { this . props . addMinute } > < span className = "glyphicon glyphicon- chevron-up" /> </ a > </ td >
73
72
74
73
< td className = "separator" > </ td >
75
74
</ tr >
@@ -87,11 +86,11 @@ export default class DateTimePickerTime extends Component {
87
86
</ tr >
88
87
89
88
< tr >
90
- < td > < a className = "btn" onClick = { this . props . subtractHour } > < Glyphicon glyph = " chevron-down" /> </ a > </ td >
89
+ < td > < a className = "btn" onClick = { this . props . subtractHour } > < span className = "glyphicon glyphicon- chevron-down" /> </ a > </ td >
91
90
92
91
< td className = "separator" > </ td >
93
92
94
- < td > < a className = "btn" onClick = { this . props . subtractMinute } > < Glyphicon glyph = " chevron-down" /> </ a > </ td >
93
+ < td > < a className = "btn" onClick = { this . props . subtractMinute } > < span className = "glyphicon glyphicon- chevron-down" /> </ a > </ td >
95
94
96
95
< td className = "separator" > </ td >
97
96
</ tr >
You can’t perform that action at this time.
0 commit comments