UNPKG

strapi-plugin-content-manager

Version:

A powerful UI to easily manage your data.

16 lines (12 loc) 247 B
const getStep = type => { let step; if (type === 'float' || type === 'decimal') { step = 0.01; } else if (type === 'time' || type === 'datetime') { step = 30; } else { step = 1; } return step; }; export default getStep;