chore: remove unused EmptyDarkRightPanel

This commit is contained in:
Roman Hotsiy 2018-06-26 18:55:22 +03:00
parent e80881f0a8
commit 1812775cd0
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
3 changed files with 3 additions and 11 deletions

View File

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

View File

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

View File

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