mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
chore: remove unused EmptyDarkRightPanel
This commit is contained in:
parent
e80881f0a8
commit
1812775cd0
|
@ -25,12 +25,6 @@ export const DarkRightPanel = RightPanel.extend`
|
|||
background-color: ${props => props.theme.rightPanel.backgroundColor};
|
||||
`;
|
||||
|
||||
export const EmptyDarkRightPanel = DarkRightPanel.extend`
|
||||
${media.lessThan('medium')`
|
||||
padding: 0
|
||||
`};
|
||||
`;
|
||||
|
||||
export const Row = styled.div`
|
||||
display: flex;
|
||||
width: 100%;
|
||||
|
|
|
@ -3,7 +3,7 @@ import * as React from 'react';
|
|||
|
||||
import { AppStore } from '../../services/AppStore';
|
||||
|
||||
import { EmptyDarkRightPanel, MiddlePanel, Row } from '../../common-elements/';
|
||||
import { MiddlePanel, Row } from '../../common-elements/';
|
||||
import { Markdown } from '../Markdown/Markdown';
|
||||
import { SecurityDefs } from '../SecuritySchemes/SecuritySchemes';
|
||||
|
||||
|
@ -110,7 +110,6 @@ export class ApiInfo extends React.Component<ApiInfoProps> {
|
|||
/>
|
||||
</div>
|
||||
</MiddlePanel>
|
||||
<EmptyDarkRightPanel />
|
||||
</Row>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ import * as React from 'react';
|
|||
import { SECTION_ATTR } from '../../services/MenuStore';
|
||||
import { Markdown } from '../Markdown/Markdown';
|
||||
|
||||
import { EmptyDarkRightPanel, H1, MiddlePanel, Row, ShareLink } from '../../common-elements';
|
||||
import { H1, MiddlePanel, Row, ShareLink } from '../../common-elements';
|
||||
import { ContentItemModel } from '../../services/MenuBuilder';
|
||||
import { OperationModel } from '../../services/models';
|
||||
import { Operation } from '../Operation/Operation';
|
||||
|
@ -63,14 +63,13 @@ export class TagItem extends React.Component<ContentItemProps> {
|
|||
const { name, description } = this.props.item;
|
||||
return (
|
||||
<Row>
|
||||
<MiddlePanel key="middle">
|
||||
<MiddlePanel>
|
||||
<H1>
|
||||
<ShareLink href={'#' + this.props.item.id} />
|
||||
{name}
|
||||
</H1>
|
||||
{description !== undefined && <Markdown source={description} />}
|
||||
</MiddlePanel>
|
||||
<EmptyDarkRightPanel key="right" />
|
||||
</Row>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user