import React, { Component } from 'react'; class TableDataRow extends Component { permissionShow = () =>{ switch(this.props.data.permission){ case 1 : return "Admin"; case 2 : return "Modertor"; case 3 : return "Normal User"; default : return true ; } } render() { return ( {this.props.stt} {this.props.data.Name} {this.props.data.tel} {this.permissionShow()}
); } } export default TableDataRow;