UNPKG

nodebb-plugin-ns-awards-next

Version:

System for rewarding forum users. It allows admin to define set of awards that could be granted to users for special accomplishments.

29 lines (24 loc) 765 B
import PropTypes from 'prop-types'; import React from 'react'; // FIXME Replace with Panel Controls export default class PromptView extends React.Component { render() { return ( <div className="media"> <div className="media-body"> <p>{this.props.hint}</p> <button className="btn btn-primary" onClick={this.props.labelDidClick} type="button">{this.props.label} </button> </div> </div> ); } } PromptView.propTypes = { hint : PropTypes.string, label : PropTypes.string.isRequired, labelDidClick: PropTypes.func.isRequired };