Web:Components:Adding a new border props.
This commit is contained in:
parent
08ba1b82ae
commit
9461e0b66b
@ -45,10 +45,13 @@ class SaveCancelButtons extends React.Component {
|
||||
cancelButtonLabel,
|
||||
sectionWidth,
|
||||
hasChanged,
|
||||
border,
|
||||
className,
|
||||
id,
|
||||
} = this.props;
|
||||
|
||||
// TODO: hasChanged не нужен, тк есть showReminder?
|
||||
|
||||
const isDisabled = hasChanged !== undefined ? !hasChanged : false;
|
||||
|
||||
return (
|
||||
@ -58,6 +61,7 @@ class SaveCancelButtons extends React.Component {
|
||||
displaySettings={displaySettings}
|
||||
sectionWidth={sectionWidth}
|
||||
showReminder={showReminder}
|
||||
border={border}
|
||||
>
|
||||
<div className="buttons-flex">
|
||||
<Button
|
||||
@ -104,6 +108,7 @@ SaveCancelButtons.propTypes = {
|
||||
displaySettings: PropTypes.bool,
|
||||
sectionWidth: PropTypes.number,
|
||||
hasChanged: PropTypes.bool,
|
||||
border: PropTypes.bool,
|
||||
};
|
||||
|
||||
SaveCancelButtons.defaultProps = {
|
||||
|
Loading…
Reference in New Issue
Block a user