Skip to content

Commit

Permalink
Remove unused imports/ Change React-Dom to latest version that suppre…
Browse files Browse the repository at this point in the history
…sses warnings

Summary:
With [email protected] we are getting warnings React.createClass is deprecated.
We are not using react.createClass in our code-base but some of the dependancies react-bootstrap, react-select use react.createClass and have PR's regarding the same have not been yet been resolved.
JedWatson/react-select#1661
Hence keeping to React, React-Dom versions 15.4.0 until the PR's for React-Bootstrap and React-Select are resolved.

Test Plan:
Go to browser console.
You should not see any console warnings.

Reviewers: karthik, jeff, ram

Reviewed By: ram

Subscribers: jenkins-bot, ui, yugaware

Differential Revision: https://phabricator.dev.yugabyte.com/D1890
  • Loading branch information
Pritam Roy committed Jul 16, 2019
1 parent f34ce8d commit 33734d2
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions managed/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
"leaflet": "1.0.2",
"leaflet.markercluster": "^1.0.0",
"lodash": "^3.10.1",
"react": "^15.3.2",
"react": "^15.4.0",
"react-ace": "^3.6.1",
"react-addons-update": "^15.3.0",
"react-bootstrap": "^0.30.2",
"react-bootstrap-multiselect": "^2.2.0",
"react-bootstrap-table": "^2.5.8",
"react-dom": "^15.3.0",
"react-dom": "^15.4.0",
"react-dropzone": "^3.7.3",
"react-gauge": "0.0.5",
"react-highlight": "^0.9.0",
Expand Down
2 changes: 1 addition & 1 deletion managed/ui/src/components/common/nav_bar/SideNavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import './stylesheets/SideNavBar.scss';

class NavLink extends Component {
render () {
const { router, index, to, children, icon, text, ...props } = this.props;
const { router, index, to, icon, text, ...props } = this.props;

// Added by withRouter in React Router 3.0.
delete props.params;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class AWSProviderConfiguration extends Component {
btnClass={deleteButtonClassName} onClick={this.props.showDeleteProviderModal}/>
<YBConfirmModal name="delete-aws-provider" title={"Confirm Delete"}
onConfirm={handleSubmit(this.deleteProviderConfig.bind(this, awsProvider))}
currentModal = "deleteAWSProvider" visibleModal={this.props.visibleModal}
currentModal="deleteAWSProvider" visibleModal={this.props.visibleModal}
hideConfirmModal={this.props.hideDeleteProviderModal}>
Are you sure you want to delete this AWS configuration?
</YBConfirmModal>
Expand Down
2 changes: 1 addition & 1 deletion managed/ui/src/components/modals/YBConfirmModal.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) YugaByte, Inc.

import React, { Component, PropTypes } from 'react';
import { YBModal, YBButton } from '../common/forms/fields';
import { YBModal } from '../common/forms/fields';

export default class YBConfirmModal extends Component {
constructor(props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class TableDetail extends Component {
</Row>
<Row>
<Col lg={12}>
<YBTabsPanel activeTab={"schema"}>
<YBTabsPanel activeTab={"schema"} id={"tables-tab-panel"}>
{ tabElements }
</YBTabsPanel>
</Col>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React, { Component } from 'react';
import './UniverseStatus.scss';
import {Row, Col, ProgressBar} from 'react-bootstrap';
import {ProgressBar} from 'react-bootstrap';
import {isValidArray, isValidObject} from '../../../utils/ObjectUtils';

export default class UniverseStatus extends Component {
Expand Down
2 changes: 1 addition & 1 deletion managed/ui/src/utils/ObjectUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function areUniverseConfigsEqual(config1, config2) {
}

export function normalizeToPositiveInt(value) {
return parseInt(Math.abs(value)) || 0;
return parseInt(Math.abs(value), 10) || 0;
}

export function sortVersionStrings(arr) {
Expand Down

0 comments on commit 33734d2

Please sign in to comment.