Simplify naming of showOverlay import in FluxHeader

pull/10616/head
Jared Scheib 2018-06-25 15:45:04 -07:00
parent 810b750888
commit 4153af9f64
1 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import FluxOverlay from 'src/flux/components/FluxOverlay'
import {OverlayContext} from 'src/shared/components/OverlayTechnology' import {OverlayContext} from 'src/shared/components/OverlayTechnology'
import PageHeader from 'src/shared/components/PageHeader' import PageHeader from 'src/shared/components/PageHeader'
import { import {
showOverlay as showOverlayActionCreator, showOverlay,
ShowOverlayActionCreator, ShowOverlayActionCreator,
} from 'src/shared/actions/overlayTechnology' } from 'src/shared/actions/overlayTechnology'
@ -36,9 +36,9 @@ class FluxHeader extends PureComponent<Props> {
} }
private overlay = () => { private overlay = () => {
const {showOverlay, service} = this.props const {service} = this.props
showOverlay( this.props.showOverlay(
<OverlayContext.Consumer> <OverlayContext.Consumer>
{({onDismissOverlay}) => ( {({onDismissOverlay}) => (
<FluxOverlay <FluxOverlay
@ -54,7 +54,7 @@ class FluxHeader extends PureComponent<Props> {
} }
const mdtp = { const mdtp = {
showOverlay: showOverlayActionCreator, showOverlay,
} }
export default connect(null, mdtp)(FluxHeader) export default connect(null, mdtp)(FluxHeader)