gab-social/app/javascript/gabsocial/components/pull_to_refresher.js

20 lines
654 B
JavaScript
Raw Normal View History

2020-05-07 05:03:34 +01:00
import { BREAKPOINT_EXTRA_SMALL } from '../constants'
import Responsive from '../features/ui//util/responsive_component'
import Icon from './icon'
import Text from './text'
2020-05-07 05:03:34 +01:00
export default class PullToRefresher extends PureComponent {
render() {
return (
<Responsive max={BREAKPOINT_EXTRA_SMALL}>
<div className={[_s.default, _s.height53PX, _s.width100PC, _s.alignItemsCenter, _s.posAbs, _s.left0, _s.right0, _s.topNeg50PX].join(' ')}>
<div className={[_s.default, _s.width100PC, _s.alignItemsCenter].join(' ')}>
<Icon id='loading' size='24px' />
</div>
2020-05-07 05:03:34 +01:00
</div>
</Responsive>
)
}
}