import React, {Component} from 'react'; import {Layout, Menu} from 'antd'; import GenerateJs from "../common/generateJs/GenerateJs"; import Deploy from '../common/deploy/Deploy'; import Schema from '../common/schema/Schema'; import Graphql from "../common/graphql/Graphql"; import CaseMetabase from "../common/caseMetabase/CaseMetabase"; import Application from "../common/application/Application"; import axios from 'axios'; axios.defaults.withCredentials = true; const {Content} = Layout; class TrialCase extends Component { constructor(props) { super(props); this.state = { menuLevel2: "schema", // default user userID: "ioobot", } } switchMenu = (menuName, e) => { this.setState({ [menuName]: e.key, }); }; render() { let schemaID = this.props.history.location.state ? this.props.history.location.state.schemaID : "ecommerce_schemaID"; let schemaName = this.props.history.location.state ? this.props.history.location.state.schemaName : "ecommerce"; return (
this.switchMenu('menuLevel2', e)} selectedKeys={[this.state.menuLevel2]} > schema deploy graphql IDE templeate preview metabase { (() => { switch (this.state.menuLevel2) { case 'schema': return ; case 'deploy': return ; case 'graphiql': return ; case 'templeate': return ; case 'preview': return ; case 'metabase': return ; default: return ; } })() }
) } } export default TrialCase;