({ verb, requestPath }: RestMethodT)
| 8 | } |
| 9 | |
| 10 | export function RestMethod({ verb, requestPath }: RestMethodT) { |
| 11 | // If the path is long, we want to break it up into multiple lines, |
| 12 | // breaking before the / character. |
| 13 | const displayPath = requestPath.length > 25 ? requestPath.replaceAll('/', '<wbr/>/') : requestPath |
| 14 | return ( |
| 15 | <div className={cx(styles.method, 'my-0 text-mono d-flex flex-row flex-items-start ')}> |
| 16 | <span className="IssueLabel IssueLabel--big color-bg-accent-emphasis color-fg-on-emphasis text-uppercase mr-2"> |
| 17 | {verb} |
| 18 | </span> |
| 19 | <span dangerouslySetInnerHTML={{ __html: displayPath }} /> |
| 20 | </div> |
| 21 | ) |
| 22 | } |
nothing calls this directly
no outgoing calls
no test coverage detected