Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/table-for-divi/includes/modules/TFDT_Module_Row/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/table-for-divi/includes/modules/TFDT_Module_Row/TFDT_Module_Row.jsx |
// External Dependencies
import React, { Component } from 'react';
// Internal Dependencies
import './style.css';
class TFDT_Module_Row extends Component {
static slug = 'tfdt_module_row';
/**
* Module render in VB
* Basically TFDT_Module_Row->render() equivalent in JSX
*/
render() {
return (
<div className="table-row">
{
[...Array(20)].map((element, index) => {
let textKey = 'text' + (index + 1);
let col_value = this.props[textKey];
if(typeof col_value !== "undefined"){
return (
<div className="table-col" key={textKey}>{col_value}</div>
)
}
})
}
</div>
);
}
}
export default TFDT_Module_Row;