Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getSaveColor = () => {
const { isSaving, isSaved } = this.props.edit
if (isSaving) {
return colors.greenRegular
} else if (isSaved) {
return 'black'
} else {
return colors.redMedium
}
}