Web:Components:Adding a new border props.

This commit is contained in:
Vlada Gazizova 2022-03-18 17:02:37 +03:00
parent 08ba1b82ae
commit 9461e0b66b

View File

@ -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 = {