Skip to content

Commit 3318bfb

Browse files
committed
remove euistyled
1 parent 425dac0 commit 3318bfb

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

x-pack/legacy/plugins/epm/public/components/content_collapse.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@
55
*/
66
import React, { useState, useRef, useLayoutEffect, Fragment, useCallback } from 'react';
77
import { EuiButtonEmpty, EuiSpacer, EuiButton, EuiHorizontalRule } from '@elastic/eui';
8-
import euiStyled from '../../../../common/eui_styled_components';
8+
import styled from 'styled-components';
99

10-
const BottomFade = euiStyled.div`
11-
width: 100%;
12-
background: ${props =>
13-
`linear-gradient(${props.theme.eui.euiColorEmptyShade}00 0%, ${props.theme.eui.euiColorEmptyShade} 100%)`};
14-
margin-top: -${props => parseInt(props.theme.eui.spacerSizes.xl, 10) * 2}px;
15-
height: ${props => parseInt(props.theme.eui.spacerSizes.xl, 10) * 2}px;
16-
position: absolute;
10+
const BottomFade = styled.div`
11+
width: 100%;
12+
background: ${props =>
13+
`linear-gradient(${props.theme.eui.euiColorEmptyShade}00 0%, ${props.theme.eui.euiColorEmptyShade} 100%)`};
14+
margin-top: -${props => parseInt(props.theme.eui.spacerSizes.xl, 10) * 2}px;
15+
height: ${props => parseInt(props.theme.eui.spacerSizes.xl, 10) * 2}px;
16+
position: absolute;
1717
`;
18-
const ContentCollapseContainer = euiStyled.div`
19-
position: relative;
18+
const ContentCollapseContainer = styled.div`
19+
position: relative;
2020
`;
21-
const CollapseButtonContainer = euiStyled.div`
22-
display: inline-block;
23-
background-color: ${props => props.theme.eui.euiColorGhost};
24-
position: absolute;
25-
left: 50%;
26-
transform: translateX(-50%);
27-
top: ${props => parseInt(props.theme.eui.euiButtonHeight, 10) / 2}px;
21+
const CollapseButtonContainer = styled.div`
22+
display: inline-block;
23+
background-color: ${props => props.theme.eui.euiColorGhost};
24+
position: absolute;
25+
left: 50%;
26+
transform: translateX(-50%);
27+
top: ${props => parseInt(props.theme.eui.euiButtonHeight, 10) / 2}px;
2828
`;
29-
const CollapseButtonTop = euiStyled(EuiButtonEmpty)`
30-
float: right;
29+
const CollapseButtonTop = styled(EuiButtonEmpty)`
30+
float: right;
3131
`;
3232

3333
const CollapseButton = ({

x-pack/legacy/plugins/integrations_manager/public/components/version.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
*/
66

77
import React from 'react';
8+
import styled from 'styled-components';
89
import { RequirementVersion } from '../../common/types';
9-
import euiStyled from '../../../../common/eui_styled_components';
1010

11-
const CodeText = euiStyled.span`
12-
font-family: ${props => props.theme.eui.euiCodeFontFamily}
11+
const CodeText = styled.span`
12+
font-family: ${props => props.theme.eui.euiCodeFontFamily};
1313
`;
1414
export function Version({
1515
className,

0 commit comments

Comments
 (0)