Skip to content

Instantly share code, notes, and snippets.

@joemocha
Created June 27, 2016 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemocha/be2a8ebe78fbd5a40f0ebce9f719e813 to your computer and use it in GitHub Desktop.
Save joemocha/be2a8ebe78fbd5a40f0ebce9f719e813 to your computer and use it in GitHub Desktop.
getActions(cellData, cellDataKey, rowData, rowIndex) {
if(!rowData['return_invoice_id'] && rowData['days_left'] > 0){
return <a style={this.styles.link} href={"/return_funnel/filtered_purchases?vin_number="+rowData['vin']+"&filter_type=vin_number_filter"}>Return Vehicle</a>
} else if (!rowData['return_invoice_id']){
return '';
} else {
return this.getVraLink(rowData);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment