Simplify naming of showOverlay import in FluxHeader
parent
810b750888
commit
4153af9f64
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue