Skip to content

Commit

Permalink
Merge pull request #8 from kqualters-elastic/ts-4-3-4
Browse files Browse the repository at this point in the history
Fix template literal types used in siem
  • Loading branch information
tylersmalley committed Sep 15, 2021
2 parents d23dd2f + c6b5475 commit aa2ef4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export const EventsTrSupplementContainer = styled.div.attrs<WidthProp>(({ width
}))<WidthProp>``;

export const EventsTrSupplement = styled.div.attrs(({ className = '' }) => ({
className: `siemEventsTable__trSupplement ${className}`,
className: `siemEventsTable__trSupplement ${className}` as string,
}))<{ className: string }>`
font-size: ${({ theme }) => theme.eui.euiFontSizeXS};
line-height: ${({ theme }) => theme.eui.euiLineHeight};
Expand Down Expand Up @@ -410,7 +410,7 @@ export const EventsHeadingTitleSpan = styled.span.attrs(({ className }) => ({
`;

export const EventsHeadingExtra = styled.div.attrs(({ className = '' }) => ({
className: `siemEventsHeading__extra ${className}`,
className: `siemEventsHeading__extra ${className}` as string,
}))`
margin-left: auto;
margin-right: 2px;
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/timelines/public/components/t_grid/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export const EventsTrSupplementContainer = styled.div.attrs<WidthProp>(({ width
}))<WidthProp>``;

export const EventsTrSupplement = styled.div.attrs(({ className = '' }) => ({
className: `siemEventsTable__trSupplement ${className}`,
className: `siemEventsTable__trSupplement ${className}` as string,
}))<{ className: string }>`
font-size: ${({ theme }) => theme.eui.euiFontSizeXS};
line-height: ${({ theme }) => theme.eui.euiLineHeight};
Expand Down Expand Up @@ -409,7 +409,7 @@ export const EventsHeadingTitleSpan = styled.span.attrs(({ className }) => ({
`;

export const EventsHeadingExtra = styled.div.attrs(({ className = '' }) => ({
className: `siemEventsHeading__extra ${className}`,
className: `siemEventsHeading__extra ${className}` as string,
}))`
margin-left: auto;
margin-right: 2px;
Expand Down

0 comments on commit aa2ef4a

Please sign in to comment.