mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 02:23:43 +03:00
Minor fixes before alpha
This commit is contained in:
parent
52e7bfb347
commit
0faa66b6e6
|
@ -1,4 +1,5 @@
|
|||
import * as React from 'react';
|
||||
import * as PropTypes from 'prop-types';
|
||||
|
||||
import { Loading } from './Loading/Loading';
|
||||
import { StoreProvider } from './StoreProvider';
|
||||
|
@ -31,6 +32,7 @@ export class RedocStandalone extends React.Component<RedocStandaloneProps> {
|
|||
}
|
||||
return null;
|
||||
},
|
||||
options: PropTypes.object,
|
||||
};
|
||||
|
||||
render() {
|
||||
|
|
|
@ -55,7 +55,7 @@ export class OAuthFlow extends React.PureComponent<OAuthFlowProps> {
|
|||
</div>
|
||||
<ul>
|
||||
{Object.keys(flow!.scopes).map(scope => (
|
||||
<li>
|
||||
<li key={scope}>
|
||||
<code>{scope}</code> - {flow!.scopes[scope]}
|
||||
</li>
|
||||
))}
|
||||
|
|
|
@ -33,7 +33,7 @@ export class RedocNormalizedOptions {
|
|||
untrustedSpec: boolean;
|
||||
|
||||
constructor(raw: RedocRawOptions) {
|
||||
this.theme = mergeObjects({} as any, raw.theme || {}, defaultTheme);
|
||||
this.theme = mergeObjects({} as any, defaultTheme, raw.theme || {});
|
||||
this.scrollYOffset = RedocNormalizedOptions.normalizeScrollYOffset(raw.scrollYOffset);
|
||||
this.hideHostname = RedocNormalizedOptions.normalizeHideHostname(raw.hideHostname);
|
||||
this.expandResponses = RedocNormalizedOptions.normalizeExpandResponses(raw.expandResponses);
|
||||
|
|
Loading…
Reference in New Issue
Block a user