]>
cat aescling's git repositories - mastodon.git/blob - app/javascript/mastodon/components/load_gap.js
1 import React
from 'react';
2 import PropTypes
from 'prop-types';
3 import { injectIntl
, defineMessages
} from 'react-intl';
4 import Icon
from 'mastodon/components/icon';
6 const messages
= defineMessages({
7 load_more: { id: 'status.load_more', defaultMessage: 'Load more' },
10 export default @injectIntl
11 class LoadGap
extends React
.PureComponent
{
14 disabled: PropTypes
.bool
,
15 maxId: PropTypes
.string
,
16 onClick: PropTypes
.func
.isRequired
,
17 intl: PropTypes
.object
.isRequired
,
21 this.props
.onClick(this.props
.maxId
);
25 const { disabled
, intl
} = this.props
;
28 <button className
='load-more load-gap' disabled
={disabled
} onClick
={this.handleClick
} aria
-label
={intl
.formatMessage(messages
.load_more
)}>
29 <Icon id
='ellipsis-h' />
This page took 0.105647 seconds and 4 git commands to generate.