Progress
This commit is contained in:
@@ -14,9 +14,19 @@ export default class FloatingActionButton extends Component {
|
||||
render() {
|
||||
const { onClick, message } = this.props;
|
||||
|
||||
// const shouldHideFAB = path => path.match(/^\/posts\/|^\/search|^\/getting-started/);
|
||||
// const floatingActionButton = shouldHideFAB(this.context.router.history.location.pathname) ? null : <button key='floating-action-button' onClick={this.handleOpenComposeModal} className='floating-action-button' aria-label={intl.formatMessage(messages.publish)}></button>;
|
||||
|
||||
return (
|
||||
<Button onClick={onClick} className='floating-action-button' aria-label={message}>
|
||||
<Button
|
||||
onClick={onClick}
|
||||
color='white'
|
||||
className={[_s.positionFixed, _s.z4, _s.bottom0, _s.right0].join(' ')}
|
||||
title={message}
|
||||
aria-label={message}
|
||||
>
|
||||
<Icon id='compose' />
|
||||
[...]
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user