mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Fixed type issue
This commit is contained in:
parent
f8ca59cf40
commit
04d7a0d8a3
1 changed files with 5 additions and 3 deletions
|
@ -6,14 +6,16 @@
|
|||
*/
|
||||
|
||||
import React, { FC } from 'react';
|
||||
import { EuiLoadingContent } from '@elastic/eui';
|
||||
import { LineRange } from '@elastic/eui/src/components/loading/loading_content';
|
||||
import { EuiLoadingContent, EuiLoadingContentProps } from '@elastic/eui';
|
||||
|
||||
export const OutputLoadingContent: FC<{ text: string }> = ({ text }) => {
|
||||
const actualLines = text.split(/\r\n|\r|\n/).length + 1;
|
||||
const lines = actualLines > 4 && actualLines <= 10 ? actualLines : 4;
|
||||
|
||||
return (
|
||||
<EuiLoadingContent data-test-subj={'mlTestModelLoadingContent'} lines={lines as LineRange} />
|
||||
<EuiLoadingContent
|
||||
data-test-subj={'mlTestModelLoadingContent'}
|
||||
lines={lines as EuiLoadingContentProps['lines']}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue