rsnext/packages/next-codemod/transforms/__testfixtures__/url-to-withrouter/with-nested-arrow-function.input.js
2020-08-10 11:14:53 +02:00

22 lines
515 B
JavaScript

export default withAppContainer(
withAuth(
class Blog extends React.Component {
render() {
const { props, state } = this
return (
<Header
inverse={true}
user={props.user}
pathname={props.url.pathname}
onLogout={() => {
props.onUser(null)
props.url.push('/login')
}}
onLogoRightClick={() => props.url.push('/logos')}
/>
)
}
}
)
)