Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
MyWeek.navigate = (date, action) => {
switch (action) {
case Navigate.PREVIOUS:
return dates.add(date, -3, 'day')
case Navigate.NEXT:
return dates.add(date, 3, 'day')
default:
return date
}
}