This commit is contained in:
mgabdev
2020-05-14 16:45:39 -04:00
parent 4acc21944c
commit 0626928899
30 changed files with 286 additions and 100 deletions

View File

@@ -1,4 +1,5 @@
import { defineMessages, injectIntl } from 'react-intl'
import { me } from '../initial_state'
import { openModal } from '../actions/modal'
import Button from './button'
@@ -14,6 +15,7 @@ export default
@injectIntl
@connect(null, mapDispatchToProps)
class FloatingActionButton extends PureComponent {
static propTypes = {
intl: PropTypes.object.isRequired,
onOpenCompose: PropTypes.func.isRequired,
@@ -26,6 +28,8 @@ class FloatingActionButton extends PureComponent {
render() {
const { intl, onOpenCompose } = this.props
if (!me) return null
const message = intl.formatMessage(messages.gab)
return (
@@ -39,4 +43,5 @@ class FloatingActionButton extends PureComponent {
/>
)
}
}