index.js 372 Bytes
Newer Older
zhanghaozhe committed
1
import React, { PureComponent } from 'react'
zhanghaozhe committed
2
import NavBar from '@/common/NavBar'
zhanghaozhe committed
3 4

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