index.js 317 Bytes
Newer Older
zhanghaozhe committed
1 2
import React, { PureComponent } from "react"
import NavBar from "src/common/NavBar"
zhanghaozhe committed
3 4

export default function WithTab(WrappedComponent) {
zhanghaozhe committed
5 6 7 8 9 10 11 12
  return class extends PureComponent {
    render() {
      return (
        <>
          <WrappedComponent {...this.props} />
          <NavBar />
        </>
      )
zhanghaozhe committed
13
    }
zhanghaozhe committed
14 15
  }
}