Skip to content

Commit 1ba3a37

Browse files
committed
fix(SideBar): use mapMargin instead of menuMargins
1 parent 5545946 commit 1ba3a37

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

components/SideBar.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class SideBar extends React.Component {
2828
heightResizeable: PropTypes.bool,
2929
icon: PropTypes.string,
3030
id: PropTypes.string.isRequired,
31-
menuMargins: PropTypes.object,
31+
mapMargins: PropTypes.object,
3232
minWidth: PropTypes.string,
3333
onHide: PropTypes.func,
3434
onShow: PropTypes.func,
@@ -92,9 +92,9 @@ class SideBar extends React.Component {
9292
};
9393
const isLeftSide = this.props.side === "left";
9494
if (isLeftSide) {
95-
style.left = visible ? this.props.menuMargins.left : 0;
95+
style.left = visible ? this.props.mapMargins.left : 0;
9696
} else {
97-
style.right = visible ? this.props.menuMargins.right : 0;
97+
style.right = visible ? this.props.mapMargins.right : 0;
9898
}
9999

100100
const classes = classnames({
@@ -171,7 +171,7 @@ class SideBar extends React.Component {
171171

172172
export default connect((state) => ({
173173
currentTask: state.task,
174-
menuMargins: state.windows.menuMargins,
174+
mapMargins: state.windows.mapMargins,
175175
windowMargins: state.windows.windowMargins
176176
}), {
177177
setCurrentTask: setCurrentTask

0 commit comments

Comments
 (0)