import React, { Component } from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' import { Button } from 'antd' class InterfaceList extends Component { static propTypes = { projectMember: PropTypes.func } constructor(props) { super(props) } getInterfaceId () { const reg = /project\/(\d+)/g const url = location.href url.match(reg) return RegExp.$1 } render () { const { projectMember } = this.props const getInterfaceId = this.getInterfaceId() return (