@@ -2,7 +2,7 @@ import React, { Component } from 'react';
2
2
import { Helmet } from 'react-helmet' ;
3
3
import { Grid , Row , Col , Modal } from 'react-bootstrap' ;
4
4
import SplitPane from 'react-split-pane' ;
5
- import UASTViewer , { transformer } from 'uast-viewer' ;
5
+ import UASTViewer , { Editor , transformer } from 'uast-viewer' ;
6
6
import 'uast-viewer/dist/default-theme.css' ;
7
7
import Sidebar from './components/Sidebar' ;
8
8
import QueryBox from './components/QueryBox' ;
@@ -119,7 +119,7 @@ FROM ( SELECT MONTH(committer_when) as month,
119
119
this . setState ( {
120
120
showModal : true ,
121
121
modalTitle : 'Source code' ,
122
- modalContent : < pre > { code } </ pre >
122
+ modalContent : < Editor code = { code } / >
123
123
} ) ;
124
124
}
125
125
@@ -128,7 +128,7 @@ FROM ( SELECT MONTH(committer_when) as month,
128
128
showModal : true ,
129
129
modalTitle : 'UAST' ,
130
130
modalContent :
131
- // currently github returns only 1 item, UAST of the file
131
+ // currently gitbase returns only 1 item, UAST of the file
132
132
// but just in case if there is more or less we show it without viewer
133
133
uast . length === 1 ? (
134
134
< UASTViewer uast = { transformer ( uast [ 0 ] ) } />
0 commit comments