mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 18:13:44 +03:00
chore: run prettier
This commit is contained in:
parent
d92ed428f9
commit
4b15a1702d
|
@ -40,7 +40,12 @@ export class MenuItem extends React.Component<MenuItemProps> {
|
|||
render() {
|
||||
const { item, withoutChildren } = this.props;
|
||||
return (
|
||||
<MenuItemLi onClick={this.activate} depth={item.depth} innerRef={this.saveRef} data-item-id={item.id}>
|
||||
<MenuItemLi
|
||||
onClick={this.activate}
|
||||
depth={item.depth}
|
||||
innerRef={this.saveRef}
|
||||
data-item-id={item.id}
|
||||
>
|
||||
{item.type === 'operation' ? (
|
||||
<OperationMenuItemContent item={item as OperationModel} />
|
||||
) : (
|
||||
|
|
|
@ -126,7 +126,8 @@ export const MenuItemLabel = withProps<{
|
|||
color: ${props => (props.active ? props.theme.colors.main : props.theme.colors.text)};
|
||||
margin: 0;
|
||||
padding: 12.5px ${props => props.theme.spacingUnit}px;
|
||||
${({ depth, type, theme }) => type === 'section' && depth > 1 && 'padding-left: ' + theme.spacingUnit * 2 + 'px;' || ''}
|
||||
${({ depth, type, theme }) =>
|
||||
(type === 'section' && depth > 1 && 'padding-left: ' + theme.spacingUnit * 2 + 'px;') || ''}
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-family: ${props => props.theme.headingsFont.family};
|
||||
|
|
Loading…
Reference in New Issue
Block a user