Commit 7cef132c authored by Farid Neshat's avatar Farid Neshat

Bold the time/date of timeoffs

parent 77ec4628
......@@ -3,9 +3,9 @@
const moment = require('moment');
const HUMAN_DATE_FORMAT = 'ddd MMM D';
exports.formatTimeOff = ({type, start, end, amount, unit, amountUnit}) => {
return `${type.toLowerCase()} from ${
exports.formatDate(start, true)} to ${exports.formatDate(end)} for ${
exports.formatTimeOff = ({type, start, end, amount, unit, amountUnit, id}) => {
let result = `${type.toLowerCase()} from *${
exports.formatDate(start, true)}* to *${exports.formatDate(end)}* for ${
amount} working ${unit || amountUnit}`;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment