1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-23 22:25:56 -04:00
This commit is contained in:
Mark McDowall
2018-01-12 18:01:27 -08:00
committed by Taloth Saldono
parent 99feff549d
commit 5894b4fd95
1183 changed files with 91622 additions and 4978 deletions
+33
View File
@@ -0,0 +1,33 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './FieldSet.css';
class FieldSet extends Component {
//
// Render
render() {
const {
legend,
children
} = this.props;
return (
<fieldset className={styles.fieldSet}>
<legend className={styles.legend}>
{legend}
</legend>
{children}
</fieldset>
);
}
}
FieldSet.propTypes = {
legend: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
children: PropTypes.node
};
export default FieldSet;