MCPcopy Create free account
hub / github.com/Lobos/react-ui / sub

Method sub

src/Datepicker/TimeSet.js:33–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 }
32
33 sub () {
34 let value = this.state.value,
35 max = this.props.type === 'hour' ? 23 : 59;
36 value -= 1;
37 if (value < 0) {
38 value = max;
39 }
40 this.changeTime(value);
41 }
42
43 changeTime (value) {
44 let d = {};

Callers

nothing calls this directly

Calls 1

changeTimeMethod · 0.95

Tested by

no test coverage detected