index.js 805 Bytes
Newer Older
jim's avatar
jim committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
import React, { PureComponent } from 'react';
import { Link } from 'dva/router';
import RightContent from '../GlobalHeader/RightContent';
import BaseMeun from '../SiderMenu/BaseMeun';
import styles from './index.less';

export default class TopNavHeader extends PureComponent {
  render() {
    return (
      <div className={styles.main}>
        <div className={styles.left}>
          <div className={styles.logo} key="logo">
            <Link to="/">
              <img src={this.props.logo} alt="logo" />
              <h1>Ant Design Pro</h1>
            </Link>
          </div>
          <BaseMeun {...this.props} style={{ padding: '9px 0' }} />
        </div>
        <div className={styles.right}>
          <RightContent theme="white" {...this.props} />
        </div>
      </div>
    );
  }
}