mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-05 21:00:18 +03:00
fix: convert httpVerb to uppercase
This commit is contained in:
parent
bd3c3370c4
commit
70e8ab43b9
|
@ -18,7 +18,6 @@ import { ResponsesList } from '../Responses/ResponsesList';
|
|||
import { ResponseSamples } from '../ResponseSamples/ResponseSamples';
|
||||
import { SecurityRequirements } from '../SecurityRequirement/SecurityRequirement';
|
||||
import { SECTION_ATTR } from '../../services';
|
||||
import { titleize } from '../../utils/helpers';
|
||||
|
||||
const Description = styled.div`
|
||||
margin-bottom: ${({ theme }) => theme.spacing.unit * 6}px;
|
||||
|
@ -43,7 +42,7 @@ export const Operation = observer(({ operation }: OperationProps): JSX.Element =
|
|||
{isWebhook && (
|
||||
<Badge type="primary">
|
||||
{' '}
|
||||
Webhook {showWebhookVerb && '| ' + titleize(httpVerb)}
|
||||
Webhook {showWebhookVerb && httpVerb && '| ' + httpVerb.toUpperCase()}
|
||||
</Badge>
|
||||
)}
|
||||
</H2>
|
||||
|
|
Loading…
Reference in New Issue
Block a user