Shorten method name for OPTIONS and DELETE (#588)

This commit is contained in:
Nikhil569 2024-08-24 01:30:19 +05:30 committed by GitHub
parent c7f0335d96
commit caa0a22e74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,9 @@ const RequestMethod = ({ item }) => {
return (
<StyledWrapper>
<div className={getClassname(item.request.method)}>
<span className="uppercase">{item.request.method}</span>
<span className="uppercase">
{item.request.method.length > 5 ? item.request.method.substring(0, 3) : item.request.method}
</span>
</div>
</StyledWrapper>
);