UNPKG

@rnga/orders

Version:

## Get schema from @prisma-cms 1. yarn get-api-schema -e http://localhost:4000 2. yarn build-api-fragments

46 lines (27 loc) 607 B
import React, {Component} from "react"; import PropTypes from "prop-types"; class ServiceOrderStatus extends Component { static propTypes = { value: PropTypes.string.isRequired, } state = {} render() { const { value, } = this.props; let content = null; switch (value) { case "Created": content = "Новый" break; case "Accepted": content = "В работе" break; case "Completed": content = "Выполнен" break; } return content; } } export default ServiceOrderStatus;