in frontend/webapp/src/App.js [63:95]
render() {
const childProps = {
isAuthenticated : this.state.isAuthenticated,
userHasAuthenticated : this.userHasAuthenticated,
authenticatedUserName : this.state.authenticatedUserName,
};
const menu = [
{
text: "Train new model",
href: "/",
},
{
text: "Predict",
href: "infer",
},
];
return (
<DemoContainer bgType='light'>
{this.state.isAuthenticated && <Header loginName={this.state.authenticatedUserName || ''}
logoHeight={35}
customerName={config.HEADER_TITLE}
customerLogoUrl={config.HEADER_LOGO}
onLogout={this.handleLogout}
menu={menu}
/>
}
<Routes childProps={childProps}/>
<Footer />
</DemoContainer>
);
}