Skip to content

Commit

Permalink
Upgrade react (#130)
Browse files Browse the repository at this point in the history
* Upgrade react + peer dependencies + enzyme

* Fix proptypes issue & update tests for enzyme v3
  • Loading branch information
krissalvador27 authored Dec 6, 2018
1 parent f8fb621 commit ed267fe
Show file tree
Hide file tree
Showing 12 changed files with 334 additions and 251 deletions.
15 changes: 8 additions & 7 deletions docs/src/ExampleSection.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import ReactDOM from "react-dom";
import PropTypes from "prop-types";
import _ from "lodash";
import moment from "moment";
import * as d3 from "d3";
Expand All @@ -18,13 +19,13 @@ window.Reactochart = Reactochart;

export default class ExampleSection extends React.Component {
static propTypes = {
codeText: React.PropTypes.string,
scope: React.PropTypes.object,
isExpanded: React.PropTypes.bool,
label: React.PropTypes.node,
id: React.PropTypes.string,
description: React.PropTypes.node,
onClick: React.PropTypes.func
codeText: PropTypes.string,
scope: PropTypes.object,
isExpanded: PropTypes.bool,
label: PropTypes.node,
id: PropTypes.string,
description: PropTypes.node,
onClick: PropTypes.func
};
static defaultProps = {
codeText: "",
Expand Down
Loading

0 comments on commit ed267fe

Please sign in to comment.