render()

in src/components/GlobalHeader/index.js [109:144]


  render() {
    const {
      onLogout,
      form: { getFieldDecorator, resetFields, validateFields, getFieldValue },
      dispatch,
      loading
    } = this.props;
    const { userName, visible } = this.state;
    const menu = (
      <Menu>
        <Menu.Item
          key="1"
          onClick={() => {
            this.setState({ visible: true });
          }}
        >
          <Icon type="form" />{" "}
          {getIntlContent("SHENYU.GLOBALHEADER.CHANGE.PASSWORD")}
        </Menu.Item>
        <Menu.Item key="0" onClick={onLogout}>
          <Icon type="logout" /> {getIntlContent("SHENYU.GLOBALHEADER.LOGOUT")}
        </Menu.Item>
      </Menu>
    );
    return (
      <div className={styles.header}>
        <span className={styles.text}>Apache ShenYu Gateway Management System</span>
        <div>
          <Dropdown
            placement="bottomCenter"
            overlay={this.state.menu}
          >
            <Button><TranslationOutlined /></Button>
          </Dropdown>
          <div className={styles.right}>
            <Dropdown.Button overlay={menu} icon={<Icon type="user" />}>