99 EuiInMemoryTableProps ,
1010 EuiModalBody ,
1111 EuiModalHeader ,
12- EuiPanel ,
1312 EuiSpacer ,
1413} from '@elastic/eui' ;
1514import React , { useState } from 'react' ;
@@ -20,7 +19,6 @@ import { Note } from '../../../common/lib/note';
2019import { AddNote } from './add_note' ;
2120import { columns } from './columns' ;
2221import { AssociateNote , GetNewNoteId , NotesCount , search , UpdateNote } from './helpers' ;
23- import { NOTES_PANEL_WIDTH , NOTES_PANEL_HEIGHT } from '../timeline/properties/notes_size' ;
2422import { TimelineStatusLiteral , TimelineStatus } from '../../../../common/types/timeline' ;
2523
2624interface Props {
@@ -32,23 +30,12 @@ interface Props {
3230 updateNote : UpdateNote ;
3331}
3432
35- const NotesPanel = styled ( EuiPanel ) `
36- height: ${ NOTES_PANEL_HEIGHT } px;
37- width: ${ NOTES_PANEL_WIDTH } px;
38-
39- & thead {
40- display: none;
41- }
42- ` ;
43-
44- NotesPanel . displayName = 'NotesPanel' ;
45-
4633const InMemoryTable : typeof EuiInMemoryTable & { displayName : string } = styled (
4734 EuiInMemoryTable as React . ComponentType < EuiInMemoryTableProps < Note > >
4835) `
49- overflow-x: hidden;
50- overflow-y: auto ;
51- height: 220px;
36+ & thead {
37+ display: none ;
38+ }
5239` as any ; // eslint-disable-line @typescript-eslint/no-explicit-any
5340
5441InMemoryTable . displayName = 'InMemoryTable' ;
@@ -60,7 +47,7 @@ export const Notes = React.memo<Props>(
6047 const isImmutable = status === TimelineStatus . immutable ;
6148
6249 return (
63- < NotesPanel >
50+ < >
6451 < EuiModalHeader >
6552 < NotesCount noteIds = { noteIds } />
6653 </ EuiModalHeader >
@@ -84,7 +71,7 @@ export const Notes = React.memo<Props>(
8471 sorting = { true }
8572 />
8673 </ EuiModalBody >
87- </ NotesPanel >
74+ </ >
8875 ) ;
8976 }
9077) ;
0 commit comments