Skip to content

Commit 9409320

Browse files
authored
Merge pull request swagger-api#2737 from swagger-api/feature/move-scheme-out-of-securtyDefinitions
Move the schemes component out of the securityDefinitions conditional
2 parents 5c77857 + a82c466 commit 9409320

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

dist/swagger-ui-standalone-preset.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui-standalone-preset.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/standalone/layout.jsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ export default class StandaloneLayout extends React.Component {
6767
</Col>
6868
</Row>
6969
<div className="scheme-container">
70-
{ securityDefinitions &&
71-
<Col className="schemes wrapper" mobile={12}>
72-
{ schemes && schemes.size ? <Schemes schemes={ schemes } specActions={ specActions } /> : null }
73-
<AuthorizeBtn />
74-
</Col>
75-
}
70+
<Col className="schemes wrapper" mobile={12}>
71+
{ schemes && schemes.size ? (
72+
<Schemes schemes={ schemes } specActions={ specActions } />
73+
) : null }
74+
{ securityDefinitions ? (
75+
<AuthorizeBtn />
76+
) : null }
77+
</Col>
7678
</div>
7779
<Row>
7880
<Col mobile={12} desktop={12} >

0 commit comments

Comments
 (0)