-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security Solution][Data Quality Dashboard]: migrate styled-component… #205559
Changes from all commits
11ddb99
d3aaa1f
153dcfd
fd9f900
5ab5bfe
896cf38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the "Elastic License | ||
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
|
||
const babelJest = require('babel-jest'); | ||
const transformerConfig = require('./transformer_config'); | ||
|
||
module.exports = babelJest.default.createTransformer(transformerConfig); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,10 @@ | |
* 2.0. | ||
*/ | ||
|
||
import styled from 'styled-components'; | ||
import { UseEuiTheme } from '@elastic/eui'; | ||
import { CSSObject } from '@emotion/react'; | ||
|
||
export const StyledLinkText = styled.span` | ||
display: flex; | ||
gap: ${({ theme }) => theme.eui.euiSizeS}; | ||
`; | ||
export const linkTextCss = ({ euiTheme }: UseEuiTheme): CSSObject => ({ | ||
display: 'flex', | ||
gap: euiTheme.size.s, | ||
}); | ||
Comment on lines
+11
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of defining shared |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using object notation is recommended for 2 reasons: