Improvements to system console and DM modal (#2930)
Fixing audit and compliance table Changing prop Minor improvement to the DM modal
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
64b6d8cde5
Коммит
12cc9def7b
@@ -5,8 +5,13 @@ import React from 'react';
|
||||
|
||||
export default class Setting extends React.Component {
|
||||
render() {
|
||||
let marginClass;
|
||||
if (this.props.margin === 'small') {
|
||||
marginClass = ' form-group--small';
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='form-group'>
|
||||
<div className={'form-group' + marginClass}>
|
||||
<label
|
||||
className='control-label col-sm-4'
|
||||
>
|
||||
@@ -24,5 +29,6 @@ Setting.defaultProps = {
|
||||
|
||||
Setting.propTypes = {
|
||||
label: React.PropTypes.node.isRequired,
|
||||
children: React.PropTypes.node.isRequired
|
||||
children: React.PropTypes.node.isRequired,
|
||||
margin: React.PropTypes.oneOf(['', 'small'])
|
||||
};
|
||||
|
||||
Ссылка в новой задаче
Block a user