mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
refactor: minor refactor
This commit is contained in:
parent
f7bf0b8912
commit
2654cefd75
|
@ -10,7 +10,7 @@ import { ContentItems } from '../ContentItems/ContentItems';
|
|||
import { OptionsProvider } from '../OptionsProvider';
|
||||
import { SideMenu } from '../SideMenu/SideMenu';
|
||||
import { StickyResponsiveSidebar } from '../StickySidebar/StickyResponsiveSidebar';
|
||||
import { ApiContent, BackgroundStub, RedocWrap } from './elements';
|
||||
import { ApiContentWrap, BackgroundStub, RedocWrap } from './styled.elements';
|
||||
|
||||
import { SearchBox } from '../SearchBox/SearchBox';
|
||||
|
||||
|
@ -50,10 +50,10 @@ export class Redoc extends React.Component<RedocProps> {
|
|||
/>
|
||||
<SideMenu menu={menu} />
|
||||
</StickyResponsiveSidebar>
|
||||
<ApiContent className="api-content">
|
||||
<ApiContentWrap className="api-content">
|
||||
<ApiInfo store={store} />
|
||||
<ContentItems items={menu.items as any} />
|
||||
</ApiContent>
|
||||
</ApiContentWrap>
|
||||
<BackgroundStub />
|
||||
</RedocWrap>
|
||||
</OptionsProvider>
|
||||
|
|
|
@ -46,7 +46,7 @@ export const RedocWrap = styled.div`
|
|||
}
|
||||
`;
|
||||
|
||||
export const ApiContent = styled.div`
|
||||
export const ApiContentWrap = styled.div`
|
||||
z-index: 1;
|
||||
position: relative;
|
||||
overflow: hidden;
|
|
@ -1,6 +1,9 @@
|
|||
export * from './RedocStandalone';
|
||||
export * from './Redoc/Redoc';
|
||||
// export * from './Redoc/elements';
|
||||
export * from './ApiInfo/ApiInfo';
|
||||
export * from './ApiLogo/ApiLogo';
|
||||
export * from './ContentItems/ContentItems';
|
||||
export { ApiContentWrap, BackgroundStub, RedocWrap } from './Redoc/styled.elements';
|
||||
export * from './Schema/';
|
||||
export * from './SearchBox/SearchBox';
|
||||
export * from './Operation/Operation';
|
||||
|
@ -10,6 +13,7 @@ export * from './JsonViewer';
|
|||
|
||||
export * from './ErrorBoundary';
|
||||
export * from './StoreProvider';
|
||||
export * from './OptionsProvider';
|
||||
export * from './SideMenu/';
|
||||
export * from './StickySidebar/StickyResponsiveSidebar';
|
||||
export * from './SearchBox/SearchBox';
|
||||
|
|
Loading…
Reference in New Issue
Block a user