Skip to content

Commit 3b65e33

Browse files
author
Vikas Agarwal
committed
Removed conflicting library for time being. It is causing issues with IE because of ES6 syntax.
1 parent 3f49d32 commit 3b65e33

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@
119119
"react-dotdotdot": "^1.0.4",
120120
"react-gateway": "^3.0.0",
121121
"react-infinite-scroller": "^1.1.1",
122-
"react-json-editor-ajrm": "^2.5.9",
123122
"react-json-view": "^1.19.1",
124123
"react-layout-pane": "^0.1.16",
125124
"react-modal": "^1.9.7",

src/routes/metadata/components/FullScreenJSONEditor.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import React from 'react'
2-
import JSONInput from 'react-json-editor-ajrm'
3-
import locale from 'react-json-editor-ajrm/locale/en'
2+
// import JSONInput from 'react-json-editor-ajrm'
3+
// import locale from 'react-json-editor-ajrm/locale/en'
44

55
import MobilePage from '../../../components/MobilePage/MobilePage'
66
import './FullScreenJSONEditor.scss'
77

88
const FullScreenJSONEditor = ({
9-
onJSONEdit,
9+
// onJSONEdit,
1010
onExit,
11-
json
11+
// json
1212
}) => (
1313
<MobilePage keepToolbar>
1414
<div styleName="full-screen-json-editor">
1515
<button type="button" className="tc-btn tc-btn-primary tc-btn-sm" onClick={onExit}>Restore</button>
16-
<JSONInput
16+
{/* <JSONInput
1717
id="jsonField"
1818
placeholder ={ json }
1919
theme="dark_vscode_tribute"
@@ -22,7 +22,7 @@ const FullScreenJSONEditor = ({
2222
width="100%"
2323
onChange={onJSONEdit}
2424
// onKeyPressUpdate={false}
25-
waitAfterKeyPress={3000}
25+
waitAfterKeyPress={3000} */}
2626
/>
2727
</div>
2828
</MobilePage>

src/routes/metadata/components/MetaDataPanel.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*/
44
import React from 'react'
55
import PropTypes from 'prop-types'
6-
import JSONInput from 'react-json-editor-ajrm'
7-
import locale from 'react-json-editor-ajrm/locale/en'
6+
// import JSONInput from 'react-json-editor-ajrm'
7+
// import locale from 'react-json-editor-ajrm/locale/en'
88
import _ from 'lodash'
99
import update from 'react-addons-update'
1010
import Sticky from '../../../components/Sticky'
@@ -586,7 +586,7 @@ class MetaDataPanel extends React.Component {
586586
{ (metadata || isNew) && (['projectTemplate', 'productTemplate'].indexOf(metadataType) !== -1) && (
587587
<div className="json_editor_wrapper">
588588
<button type="button" className="tc-btn tc-btn-primary tc-btn-sm maximize-btn" onClick={this.enterFullScreen}>Maximize</button>
589-
<JSONInput
589+
{/* <JSONInput
590590
id="templateJSON"
591591
placeholder ={ template }
592592
theme="dark_vscode_tribute"
@@ -596,7 +596,7 @@ class MetaDataPanel extends React.Component {
596596
onChange={this.onJSONEdit}
597597
// onKeyPressUpdate={false}
598598
waitAfterKeyPress={3000}
599-
/>
599+
/> */}
600600
{/* <ReactJson
601601
src={template}
602602
theme="rjv-default"

src/routes/metadata/components/TemplateForm.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import _ from 'lodash'
55
import React, { Component } from 'react'
66
import PropTypes from 'prop-types'
77
import Modal from 'react-modal'
8-
import JSONInput from 'react-json-editor-ajrm'
9-
import locale from 'react-json-editor-ajrm/locale/en'
8+
// import JSONInput from 'react-json-editor-ajrm'
9+
// import locale from 'react-json-editor-ajrm/locale/en'
1010
import SelectDropdown from '../../../components/SelectDropdown/SelectDropdown'
1111
import FormsyForm from 'appirio-tech-react-components/components/Formsy'
1212
const TCFormFields = FormsyForm.Fields
@@ -170,7 +170,7 @@ class TemplateForm extends Component {
170170
{
171171
isJSON && (
172172
<div className="json_editor_wrapper">
173-
<JSONInput
173+
{/* <JSONInput
174174
id={ `${label}JSON` }
175175
placeholder ={ value }
176176
theme="dark_vscode_tribute"
@@ -179,7 +179,7 @@ class TemplateForm extends Component {
179179
// width='0px'
180180
onChange={ (params) => { this.onJSONEdit(field, params) } }
181181
// onKeyPressUpdate={false}
182-
waitAfterKeyPress={3000}
182+
waitAfterKeyPress={3000} */}
183183
/>
184184
</div>
185185
)

0 commit comments

Comments
 (0)