Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
Fix width parameter not used in SideNav
Browse files Browse the repository at this point in the history
add the width parameter to SideNav component
  • Loading branch information
AlonGvili authored Jul 8, 2019
1 parent 3c6abc2 commit 20df50f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default class UdNavigation extends React.Component {
}

return (
<SideNav ref={x => this.sideNav = x} fixed={this.props.fixed} trigger={<a style={{cursor: 'pointer'}} id='sidenavtrigger'><UdIcon icon="Bars" /></a>} options={{closeOnClick: true}}>
<SideNav ref={x => this.sideNav = x} style={{width: this.props.width}} fixed={this.props.fixed} trigger={<a style={{cursor: 'pointer'}} id='sidenavtrigger'><UdIcon icon="Bars" /></a>} options={{closeOnClick: true}}>
{children}
</SideNav>
)
Expand Down Expand Up @@ -174,4 +174,4 @@ class UDSideNavItem extends React.Component {
</li>
);
}
}
}

0 comments on commit 20df50f

Please sign in to comment.