clean console
This commit is contained in:
@@ -11,10 +11,8 @@ const TOFIXED_DEICMAL = 1;
|
|||||||
export const getStepSizeOfYTicks = (maxTimeInSecond) => {
|
export const getStepSizeOfYTicks = (maxTimeInSecond) => {
|
||||||
const numOfParts = NUM_OF_PARTS_TO_SPLIT;
|
const numOfParts = NUM_OF_PARTS_TO_SPLIT;
|
||||||
const {unitToUse, timeValue} = getTimeUnitAndValueToUse(maxTimeInSecond);
|
const {unitToUse, timeValue} = getTimeUnitAndValueToUse(maxTimeInSecond);
|
||||||
console.log('{unitToUse, timeValue}', unitToUse, timeValue); // TODO:
|
|
||||||
let resultStepSize;
|
let resultStepSize;
|
||||||
resultStepSize = (timeValue / numOfParts);
|
resultStepSize = (timeValue / numOfParts);
|
||||||
console.log('resultStepSize', resultStepSize); //TODO:
|
|
||||||
|
|
||||||
return {resultStepSize, unitToUse};
|
return {resultStepSize, unitToUse};
|
||||||
}
|
}
|
||||||
@@ -33,13 +31,11 @@ const getTimeUnitAndValueToUse = (secondToDecide) => {
|
|||||||
const mm = secondToDecide / minutes;
|
const mm = secondToDecide / minutes;
|
||||||
|
|
||||||
if (dd > 0) {
|
if (dd > 0) {
|
||||||
console.log('dd > 0 && dd > 1 secondToDecide / day', secondToDecide / day); //TODO:
|
|
||||||
return {
|
return {
|
||||||
unitToUse: "d",
|
unitToUse: "d",
|
||||||
timeValue: secondToDecide / day,
|
timeValue: secondToDecide / day,
|
||||||
};
|
};
|
||||||
} else if (hh > 0) {
|
} else if (hh > 0) {
|
||||||
console.log('hh > 0 && hh > 1 secondToDecide / hour', secondToDecide / hour);
|
|
||||||
return {
|
return {
|
||||||
unitToUse: "h",
|
unitToUse: "h",
|
||||||
timeValue: secondToDecide / hour,
|
timeValue: secondToDecide / hour,
|
||||||
|
|||||||
Reference in New Issue
Block a user