mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 06:04:56 +03:00
Update code style for Operation component
This commit is contained in:
parent
c72e23ceaf
commit
e308971cc0
|
@ -8,7 +8,6 @@ export interface GenericDropdownProps<T> {
|
|||
items?: T[];
|
||||
options: DropdownOption[];
|
||||
label?: string;
|
||||
|
||||
renderDropdown: (props: DropdownProps) => JSX.Element;
|
||||
children: (activeItem: T) => JSX.Element;
|
||||
}
|
||||
|
|
|
@ -18,6 +18,16 @@ import { ResponsesList } from '../Responses/ResponsesList';
|
|||
import { ResponseSamples } from '../ResponseSamples/ResponseSamples';
|
||||
import { SecurityRequirements } from '../SecurityRequirement/SecurityRequirement';
|
||||
|
||||
const OperationRow = styled(Row)`
|
||||
backface-visibility: hidden;
|
||||
contain: content;
|
||||
overflow: hidden;
|
||||
`;
|
||||
|
||||
const Description = styled.div`
|
||||
margin-bottom: ${({ theme }) => theme.spacing.unit * 6}px;
|
||||
`;
|
||||
|
||||
export interface OperationProps {
|
||||
operation: OperationModel;
|
||||
}
|
||||
|
@ -64,13 +74,3 @@ export class Operation extends React.Component<OperationProps> {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
const OperationRow = styled(Row)`
|
||||
backface-visibility: hidden;
|
||||
contain: content;
|
||||
overflow: hidden;
|
||||
`;
|
||||
|
||||
const Description = styled.div`
|
||||
margin-bottom: ${({ theme }) => theme.spacing.unit * 6}px;
|
||||
`;
|
||||
|
|
Loading…
Reference in New Issue
Block a user