This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Will be checked against lowercased label names | |
var autoarchiveLabels = { | |
newsletters: 2 | |
}; | |
// Get cutoff date for a specific label | |
function labelDelayDate(labelName) { | |
if (!autoarchiveLabels[labelName.toLowerCase()]) { | |
return false; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable react/prop-types */ | |
import { Component } from 'react'; | |
import Select from 'react-select'; | |
/** | |
* Render a search result in the center well | |
* | |
* @param {Function} props.addToCollHandler | |
* @param {Array} props.collected | |
* @param {Object} props.result |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Activity = require('../../../schema/Activity'); | |
const { | |
activityCouldHaveLaps, | |
getActivityData, | |
} = require('../../refreshAthlete/utils'); | |
const { | |
compileStatsForActivities, | |
updateAthleteStats, | |
} = require('../../athleteStats'); | |
const { slackError } = require('../../slackNotification'); |