Progress on mobile modal and popover dialogs

This commit is contained in:
mgabdev
2020-05-12 20:36:54 -04:00
parent 2fcbd4131f
commit ccc3206f8f
22 changed files with 166 additions and 80 deletions

View File

@@ -41,6 +41,7 @@ class StatusVisibilityDropdown extends PureComponent {
value: PropTypes.string.isRequired,
onChange: PropTypes.func.isRequired,
intl: PropTypes.object.isRequired,
isXS: PropTypes.bool,
}
handleChange = (value) => {
@@ -48,7 +49,7 @@ class StatusVisibilityDropdown extends PureComponent {
}
render () {
const { intl, value } = this.props
const { intl, value, isXS } = this.props
const options = [
{
@@ -72,7 +73,7 @@ class StatusVisibilityDropdown extends PureComponent {
]
return (
<PopoverLayout width={300}>
<PopoverLayout width={300} isXS={isXS}>
<div className={[_s.default].join(' ')}>
{
options.map((option, i) => {