Skip to content

Commit

Permalink
Pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kqualters-elastic committed May 12, 2022
1 parent dfd636a commit f20041d
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ const SUCCESS_COLUMN: Columns<AuthenticationsEdges, AuthenticationsEdges> = {
},
}}
isAggregatable={true}
fieldType={'keyword'}
fieldType="keyword"
render={(dataProvider, _, snapshot) =>
snapshot.isDragging ? (
<DragEffects>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const DraggableScoreComponent = ({
dataProvider={dataProviderProp}
render={render}
isAggregatable={true}
fieldType={'keyword'}
fieldType="keyword"
/>
);
};
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const getRowItemDraggable = ({
rowItem,
attrName,
idPrefix,
fieldType = 'keyword',
isAggregatable = false,
fieldType,
isAggregatable,
render,
dragDisplayValue,
}: GetRowItemDraggableParams): JSX.Element => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,39 +72,37 @@ const EventsComponent: React.FC<Props> = ({
tabType,
leadingControlColumns,
trailingControlColumns,
}) => {
return (
<EventsTbody data-test-subj="events">
{data.map((event, i) => (
<StatefulEvent
actionsColumnWidth={actionsColumnWidth}
ariaRowindex={i + ARIA_ROW_INDEX_OFFSET}
columnHeaders={columnHeaders}
containerRef={containerRef}
event={event}
eventIdToNoteIds={eventIdToNoteIds}
isEventPinned={eventIsPinned({ eventId: event._id, pinnedEventIds })}
isEventViewer={isEventViewer}
key={`${id}_${tabType}_${event._id}_${event._index}_${
!isEmpty(event.ecs.eql?.sequenceNumber) ? event.ecs.eql?.sequenceNumber : ''
}`}
lastFocusedAriaColindex={lastFocusedAriaColindex}
loadingEventIds={loadingEventIds}
onRowSelected={onRowSelected}
renderCellValue={renderCellValue}
refetch={refetch}
rowRenderers={rowRenderers}
onRuleChange={onRuleChange}
selectedEventIds={selectedEventIds}
showCheckboxes={showCheckboxes}
tabType={tabType}
timelineId={id}
leadingControlColumns={leadingControlColumns}
trailingControlColumns={trailingControlColumns}
/>
))}
</EventsTbody>
);
};
}) => (
<EventsTbody data-test-subj="events">
{data.map((event, i) => (
<StatefulEvent
actionsColumnWidth={actionsColumnWidth}
ariaRowindex={i + ARIA_ROW_INDEX_OFFSET}
columnHeaders={columnHeaders}
containerRef={containerRef}
event={event}
eventIdToNoteIds={eventIdToNoteIds}
isEventPinned={eventIsPinned({ eventId: event._id, pinnedEventIds })}
isEventViewer={isEventViewer}
key={`${id}_${tabType}_${event._id}_${event._index}_${
!isEmpty(event.ecs.eql?.sequenceNumber) ? event.ecs.eql?.sequenceNumber : ''
}`}
lastFocusedAriaColindex={lastFocusedAriaColindex}
loadingEventIds={loadingEventIds}
onRowSelected={onRowSelected}
renderCellValue={renderCellValue}
refetch={refetch}
rowRenderers={rowRenderers}
onRuleChange={onRuleChange}
selectedEventIds={selectedEventIds}
showCheckboxes={showCheckboxes}
tabType={tabType}
timelineId={id}
leadingControlColumns={leadingControlColumns}
trailingControlColumns={trailingControlColumns}
/>
))}
</EventsTbody>
);

export const Events = React.memo(EventsComponent);

0 comments on commit f20041d

Please sign in to comment.