Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Change to pure component
Browse files Browse the repository at this point in the history
  • Loading branch information
uppal101 committed Nov 13, 2017
1 parent 2f40114 commit a2db27e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/api-explorer-ui/src/AuthBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function renderSecurities(authInputRef, operation, onChange, onSubmit) {
});
}

class AuthBox extends React.Component {
class AuthBox extends React.PureComponent {
constructor(props) {
super(props);
this.state = {};
Expand Down
2 changes: 1 addition & 1 deletion packages/api-explorer-ui/src/Doc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const showCode = require('./lib/show-code');
const parseResponse = require('./lib/parse-response');
const Content = require('./block-types/Content');

class Doc extends React.Component {
class Doc extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
Expand Down
2 changes: 1 addition & 1 deletion packages/api-explorer-ui/src/Response.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Oas = require('./lib/Oas');

const { Operation } = Oas;

class Response extends React.Component {
class Response extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
Expand Down
2 changes: 1 addition & 1 deletion packages/api-explorer-ui/src/ResponseSchema.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { Operation } = Oas;
// const marked = require('./lib/markdown/index');
// const convertToParams = require('../../../legacy-stuff/swagger');

class ResponseSchema extends React.Component {
class ResponseSchema extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
Expand Down
2 changes: 1 addition & 1 deletion packages/api-explorer-ui/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const extensions = require('../../readme-oas-extensions');

const Doc = require('./Doc');

class ApiExplorer extends React.Component {
class ApiExplorer extends React.PureComponent {
constructor(props) {
super(props);
this.state = { language: Cookie.get('readme_language') || this.getDefaultLanguage() };
Expand Down

0 comments on commit a2db27e

Please sign in to comment.