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
1 changed files with 22 additions and 16 deletions

View File

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