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:
mgabdev
2020-12-22 23:49:51 -05:00
parent 0e860dd563
commit 7142375c0b
8 changed files with 67 additions and 5 deletions

View 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