Updated SidebarLayout compose button styles and hide if no user

• Updated:
- SidebarLayout compose button styles and hide if no user
This commit is contained in:
mgabdev 2020-11-03 13:12:11 -06:00
parent e66a9ae0a6
commit b12e66ef88

View File

@ -91,16 +91,21 @@ class SidebarLayout extends React.PureComponent {
{children} {children}
</nav> </nav>
{
!!me &&
<Responsive min={BREAKPOINT_SMALL}> <Responsive min={BREAKPOINT_SMALL}>
<Button <Button
isBlock
onClick={this.handleOpenComposeModal} onClick={this.handleOpenComposeModal}
className={[_s.py15, _s.fs15PX, _s.fw600].join(' ')} className={_s.py15}
> icon='pencil'
Gab iconSize='18px'
</Button> iconClassName={[_s.py5, _s.px5].join(' ')}
/>
</Responsive> </Responsive>
}
{
!!me &&
<Responsive max={BREAKPOINT_SMALL}> <Responsive max={BREAKPOINT_SMALL}>
<Button <Button
onClick={this.handleOpenComposeModal} onClick={this.handleOpenComposeModal}
@ -108,6 +113,7 @@ class SidebarLayout extends React.PureComponent {
icon='pencil' icon='pencil'
/> />
</Responsive> </Responsive>
}
</div> </div>
</div> </div>