Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Sep 21, 2020
1 parent 80d31d4 commit 5af7fcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ export const ColumnHeadersComponent = ({

const renderClone: DraggableChildrenFn = useCallback(
(dragProvided, _dragSnapshot, rubric) => {
// TODO: Remove after github.com/DefinitelyTyped/DefinitelyTyped/pull/43057 is merged
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const index = (rubric as any).source.index;
const index = rubric.source.index;
const header = columnHeaders[index];

const onMount = () => setDraggingIndex(index);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ export const EventsThGroupData = styled.div.attrs(({ className = '' }) => ({
}
`;

export const EventsTh = styled.div.attrs(({ className = '' }) => ({
export const EventsTh = styled.div.attrs<{ role: string }>(({ className = '' }) => ({
className: `siemEventsTable__th ${className}`,
role: 'columnheader',
}))`
}))<{ role?: string }>`
align-items: center;
display: flex;
flex-shrink: 0;
Expand Down

0 comments on commit 5af7fcb

Please sign in to comment.