You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Prowlarr/frontend/src/Components/Form/InfoInput.js

41 lines
839 B

import PropTypes from 'prop-types';
import React, { Component } from 'react';
class InfoInput extends Component {
//
// Render
render() {
const {
value
} = this.props;
return (
<span dangerouslySetInnerHTML={{ __html: value }} />
);
}
}
InfoInput.propTypes = {
readOnly: PropTypes.bool,
autoFocus: PropTypes.bool,
placeholder: PropTypes.string,
name: PropTypes.string.isRequired,
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]).isRequired,
hasError: PropTypes.bool,
hasWarning: PropTypes.bool,
hasButton: PropTypes.bool,
onChange: PropTypes.func.isRequired,
onFocus: PropTypes.func,
onBlur: PropTypes.func,
onCopy: PropTypes.func,
onSelectionChange: PropTypes.func
};
InfoInput.defaultProps = {
value: ''
};
export default InfoInput;