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

Commit

Permalink
Reverse enableLogs
Browse files Browse the repository at this point in the history
  • Loading branch information
dok committed Sep 28, 2018
1 parent 67a5384 commit a0bbb7e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion example/src/Demo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function Demo({ fetchSwagger, status, docs, oas, oauth }) {
flags={{ correctnewlines: false }}
// Uncomment this in for column layout
// appearance={{ referenceLayout: 'column' }}
enableLogs={false}
appearance={{ referenceLayout: 'row' }}
suggestedEdits
oauth={oauth}
Expand Down
5 changes: 1 addition & 4 deletions packages/api-explorer/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31081,7 +31081,6 @@ function (_React$Component) {
flags: _this2.props.flags,
user: _this2.props.variables.user,
Logs: _this2.props.Logs,
enableLogs: _this2.props.enableLogs,
baseUrl: _this2.props.baseUrl,
appearance: _this2.props.appearance,
language: _this2.state.language,
Expand Down Expand Up @@ -31110,7 +31109,6 @@ ApiExplorer.propTypes = {
baseUrl: PropTypes.string.isRequired,
Logs: PropTypes.func,
suggestedEdits: PropTypes.bool.isRequired,
enableLogs: PropTypes.bool.isRequired,
tryItMetrics: PropTypes.func,
variables: PropTypes.shape({
user: PropTypes.shape({
Expand Down Expand Up @@ -37109,7 +37107,7 @@ function (_React$Component) {
}, {
key: "renderLogs",
value: function renderLogs() {
if (!this.props.enableLogs || !this.props.Logs) return null;
if (!this.props.Logs) return null;
var Logs = this.props.Logs;
return React.createElement(Logs, {
apiKey: this.props.apiKey,
Expand Down Expand Up @@ -37238,7 +37236,6 @@ Doc.propTypes = {
language: PropTypes.string.isRequired,
baseUrl: PropTypes.string,
oauth: PropTypes.bool.isRequired,
enableLogs: PropTypes.bool.isRequired,
suggestedEdits: PropTypes.bool.isRequired,
apiKey: PropTypes.string,
tryItMetrics: PropTypes.func.isRequired
Expand Down
3 changes: 1 addition & 2 deletions packages/api-explorer/src/Doc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class Doc extends React.Component {
}

renderLogs() {
if (!this.props.enableLogs || !this.props.Logs) return null;
if (!this.props.Logs) return null;
const { Logs } = this.props;
return (
<Logs
Expand Down Expand Up @@ -384,7 +384,6 @@ Doc.propTypes = {
language: PropTypes.string.isRequired,
baseUrl: PropTypes.string,
oauth: PropTypes.bool.isRequired,
enableLogs: PropTypes.bool.isRequired,
suggestedEdits: PropTypes.bool.isRequired,
apiKey: PropTypes.string,
tryItMetrics: PropTypes.func.isRequired,
Expand Down
2 changes: 0 additions & 2 deletions packages/api-explorer/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ class ApiExplorer extends React.Component {
flags={this.props.flags}
user={this.props.variables.user}
Logs={this.props.Logs}
enableLogs={this.props.enableLogs}
baseUrl={this.props.baseUrl}
appearance={this.props.appearance}
language={this.state.language}
Expand Down Expand Up @@ -138,7 +137,6 @@ ApiExplorer.propTypes = {
baseUrl: PropTypes.string.isRequired,
Logs: PropTypes.func,
suggestedEdits: PropTypes.bool.isRequired,
enableLogs: PropTypes.bool.isRequired,
tryItMetrics: PropTypes.func,
variables: PropTypes.shape({
user: PropTypes.shape({
Expand Down

0 comments on commit a0bbb7e

Please sign in to comment.