diff --git a/x-pack/legacy/plugins/apm/public/components/shared/Stacktrace/Variables.tsx b/x-pack/legacy/plugins/apm/public/components/shared/Stacktrace/Variables.tsx index dfc9c95c9143a..34c46f84c76b9 100644 --- a/x-pack/legacy/plugins/apm/public/components/shared/Stacktrace/Variables.tsx +++ b/x-pack/legacy/plugins/apm/public/components/shared/Stacktrace/Variables.tsx @@ -5,18 +5,12 @@ */ import theme from '@elastic/eui/dist/eui_theme_light.json'; +import styled from 'styled-components'; +import { EuiAccordion } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React from 'react'; -import styled from 'styled-components'; +import { borderRadius, px, unit, units } from '../../../style/variables'; import { IStackframe } from '../../../../typings/es_schemas/raw/fields/Stackframe'; -import { - borderRadius, - fontFamily, - px, - unit, - units -} from '../../../style/variables'; -import { Ellipsis } from '../Icons'; import { DottedKeyValueTable } from '../DottedKeyValueTable'; const VariablesContainer = styled.div` @@ -24,17 +18,6 @@ const VariablesContainer = styled.div` border-top: 1px solid ${theme.euiColorLightShade}; border-radius: 0 0 ${borderRadius} ${borderRadius}; padding: ${px(units.half)} ${px(unit)}; - font-family: ${fontFamily}; -`; - -const VariablesToggle = styled.a` - display: block; - cursor: pointer; - user-select: none; -`; - -const VariablesTableContainer = styled.div` - padding: ${px(units.plus)} ${px(unit)} 0; `; interface Props { @@ -42,34 +25,28 @@ interface Props { } export class Variables extends React.Component { - public state = { - isVisible: false - }; - - public onClick = () => { - this.setState(() => ({ isVisible: !this.state.isVisible })); - }; - public render() { if (!this.props.vars) { return null; } return ( - - - {' '} - {i18n.translate( - 'xpack.apm.stacktraceTab.localVariablesToogleButtonLabel', - { defaultMessage: 'Local variables' } - )} - - {this.state.isVisible && ( - - - - )} - + + + + + + + + + ); } }