core-components: add className prop for LogViewer

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-12-05 20:40:44 +01:00
committed by blam
parent b291c3176e
commit 37d80d0a9d
@@ -29,6 +29,7 @@ import { useLogViewerSelection } from './useLogViewerSelection';
export interface LogViewerProps {
text: string;
className?: string;
}
export function LogViewer(props: LogViewerProps) {
@@ -59,7 +60,10 @@ export function LogViewer(props: LogViewerProps) {
return (
<AutoSizer>
{({ height, width }) => (
<div style={{ width, height }} className={classes.root}>
<div
style={{ width, height }}
className={clsx(classes.root, props.className)}
>
<div className={classes.header}>
<LogViewerControls {...search} />
</div>