refactor: minor refactor

This commit is contained in:
Roman Hotsiy 2018-05-17 11:41:51 +03:00
parent f7bf0b8912
commit 2654cefd75
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
3 changed files with 9 additions and 5 deletions

View File

@ -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>

View File

@ -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;

View File

@ -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';