@@ -3,6 +3,7 @@ import PlotlyPanel from './PlotlyPanel';
33import PropTypes from 'prop-types' ;
44import React , { Component } from 'react' ;
55import { connectTransformToTrace } from 'lib' ;
6+ import { PanelMessage } from './PanelEmpty' ;
67
78const TransformFold = connectTransformToTrace ( PlotlyFold ) ;
89
@@ -99,35 +100,33 @@ class TransformAccordion extends Component {
99100 { content ? (
100101 content
101102 ) : (
102- < div className = "panel__empty__message" style = { { paddingTop : 0 } } >
103- < div className = "panel__empty__message__content" >
104- < div style = { { textAlign : 'left' } } >
105- < p >
106- < strong > { _ ( 'Filter' ) } </ strong > { ' ' }
107- { _ ( ' transforms allow you to filter data out from a trace.' ) }
108- </ p >
109- < p >
110- < strong > { _ ( 'Split' ) } </ strong > { ' ' }
111- { _ (
112- ' transforms allow you to create multiple traces from one source trace, so as to style them differently.'
113- ) }
114- </ p >
115- < p >
116- < strong > { _ ( 'Aggregate' ) } </ strong > { ' ' }
117- { _ (
118- ' transforms allow you to summarize a trace using an aggregate function like "average" or "minimum".'
119- ) }
120- </ p >
121- < p >
122- < strong > { _ ( 'Sort' ) } </ strong > { ' ' }
123- { _ (
124- ' transforms allow you to sort a trace, so as to control marker overlay or line connection order.'
125- ) }
126- </ p >
127- </ div >
128- < p > { _ ( 'Click on the + button above to add a transform.' ) } </ p >
103+ < PanelMessage icon = { null } >
104+ < div style = { { textAlign : 'left' } } >
105+ < p >
106+ < strong > { _ ( 'Filter' ) } </ strong > { ' ' }
107+ { _ ( ' transforms allow you to filter data out from a trace.' ) }
108+ </ p >
109+ < p >
110+ < strong > { _ ( 'Split' ) } </ strong > { ' ' }
111+ { _ (
112+ ' transforms allow you to create multiple traces from one source trace, so as to style them differently.'
113+ ) }
114+ </ p >
115+ < p >
116+ < strong > { _ ( 'Aggregate' ) } </ strong > { ' ' }
117+ { _ (
118+ ' transforms allow you to summarize a trace using an aggregate function like "average" or "minimum".'
119+ ) }
120+ </ p >
121+ < p >
122+ < strong > { _ ( 'Sort' ) } </ strong > { ' ' }
123+ { _ (
124+ ' transforms allow you to sort a trace, so as to control marker overlay or line connection order.'
125+ ) }
126+ </ p >
129127 </ div >
130- </ div >
128+ < p > { _ ( 'Click on the + button above to add a transform.' ) } </ p >
129+ </ PanelMessage >
131130 ) }
132131 </ PlotlyPanel >
133132 ) ;
0 commit comments