Updated Statuses to open in modal dialog when in Gab Deck
• Updated: - Statuses to open in modal dialog when in Gab Deck instead of going out of Gab Deck to normal status page
This commit is contained in:
28
app/javascript/gabsocial/components/modal/status_modal.js
Normal file
28
app/javascript/gabsocial/components/modal/status_modal.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import Block from '../block'
|
||||
import Status from '../../features/status'
|
||||
|
||||
class StatusModal extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const { statusId } = this.props
|
||||
|
||||
return (
|
||||
<div style={{width: '580px'}} className={[_s.d, _s.modal].join(' ')}>
|
||||
<Block>
|
||||
<div className={[_s.d, _s.w100PC, _s.maxH80VH, _s.overflowYScroll].join(' ')}>
|
||||
<Status id={statusId} />
|
||||
</div>
|
||||
</Block>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
StatusModal.propTypes = {
|
||||
statusId: PropTypes.string,
|
||||
}
|
||||
|
||||
export default StatusModal
|
||||
Reference in New Issue
Block a user