@@ -68,20 +68,22 @@ class DataPreview extends React.Component {
68
68
</ div >
69
69
) ;
70
70
} else if ( chartData ) {
71
- < div className = { Styles . previewInner } >
72
- < h3 className = { Styles . h3 } > { previewed . name } </ h3 >
73
- < p > { t ( "preview.doesNotContainGeospatialData" ) } </ p >
74
- < div className = { Styles . previewChart } >
75
- { /* TODO: Show a preview chart
71
+ return (
72
+ < div className = { Styles . previewInner } >
73
+ < h3 className = { Styles . h3 } > { previewed . name } </ h3 >
74
+ < p > { t ( "preview.doesNotContainGeospatialData" ) } </ p >
75
+ < div className = { Styles . previewChart } >
76
+ { /* TODO: Show a preview chart
76
77
<Chart
77
78
data={chartData}
78
79
axisLabel={{ x: previewed.xAxis.units, y: undefined }}
79
80
height={250 - 34}
80
81
/>
81
82
*/ }
83
+ </ div >
84
+ < Description item = { previewed } />
82
85
</ div >
83
- < Description item = { previewed } />
84
- </ div > ;
86
+ ) ;
85
87
} else if ( previewed && CatalogFunctionMixin . isMixedInto ( previewed ) ) {
86
88
return (
87
89
< InvokeFunction
@@ -101,18 +103,20 @@ class DataPreview extends React.Component {
101
103
</ div >
102
104
) ;
103
105
} else {
104
- < div className = { Styles . placeholder } >
105
- < Trans i18nKey = "preview.selectToPreview" >
106
- < p > Select a dataset to see a preview</ p >
107
- < p > - OR -</ p >
108
- < button
109
- className = { Styles . btnBackToMap }
110
- onClick = { ( ) => this . backToMap ( ) }
111
- >
112
- Go to the map
113
- </ button >
114
- </ Trans >
115
- </ div > ;
106
+ return (
107
+ < div className = { Styles . placeholder } >
108
+ < Trans i18nKey = "preview.selectToPreview" >
109
+ < p > Select a dataset to see a preview</ p >
110
+ < p > - OR -</ p >
111
+ < button
112
+ className = { Styles . btnBackToMap }
113
+ onClick = { ( ) => this . backToMap ( ) }
114
+ >
115
+ Go to the map
116
+ </ button >
117
+ </ Trans >
118
+ </ div >
119
+ ) ;
116
120
}
117
121
}
118
122
0 commit comments