Display BotFactory logs.

This commit is contained in:
egorgripasov 2020-07-18 12:48:43 -04:00
parent b6de2a6f55
commit c2d84eef87

View File

@ -11,8 +11,10 @@ import Panel from '../../../components/Panel';
import Toolbar from '../../../components/Toolbar';
import BotRecords from './BotRecords';
import LogPoller from '../../../components/LogPoller';
const TAB_RECORDS = 'records';
const TAB_LOG = 'log';
const useStyles = makeStyles(theme => ({
root: {}
@ -29,6 +31,7 @@ const Bots = () => {
<Toolbar>
<Tabs value={tab} onChange={(_, value) => setTab(value)}>
<Tab value={TAB_RECORDS} label='Records' />
<Tab value={TAB_LOG} label='Log' />
</Tabs>
</Toolbar>
}
@ -36,6 +39,10 @@ const Bots = () => {
{tab === TAB_RECORDS && (
<BotRecords />
)}
{tab === TAB_LOG && (
<LogPoller service='bot-factory' />
)}
</Panel>
);
};