22 lines
458 B
JavaScript
22 lines
458 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
/* destructure props object */
|
|
function CalendarDatesTableEntry({ serviceId, date, exceptionType }) {
|
|
return (
|
|
<tr>
|
|
<td>{serviceId}</td>
|
|
<td>{date}</td>
|
|
<td>{exceptionType}</td>
|
|
</tr>
|
|
);
|
|
}
|
|
|
|
CalendarDatesTableEntry.propTypes = {
|
|
serviceId: PropTypes.string,
|
|
date: PropTypes.string,
|
|
exceptionType: PropTypes.number,
|
|
};
|
|
|
|
export default CalendarDatesTableEntry;
|