Skip to content

Commit

Permalink
Prettier compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryan4884 committed Oct 14, 2024
1 parent d54bdb2 commit 6dfcfa9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions library/src/containers/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,20 +348,25 @@ const OperationItem: React.FunctionComponent<OperationItemProps> = ({
config,
isAsyncAPIv2,
});
const bgColors = ['bg-red-600', 'bg-orange-600', 'bg-green-600', 'bg-blue-600'];
const bgColors = [
'bg-red-600',
'bg-orange-600',
'bg-green-600',
'bg-blue-600'
];
return (
<li key={`menu-operation-list-${operationHrefId}`}>
<a
className="flex no-underline text-gray-700 mb-2 hover:text-gray-900"
href={`#${operationHrefId}`}
onClick={() => setShowSidebar(false)}
>
<strong
className={`h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs ${bgColors.includes(backgroundColor) && backgroundColor}`}
<span
className={`font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs ${bgColors.includes(backgroundColor) && backgroundColor}`}
title={typeLabel}
>
{typeLabel}
</strong>
</span>
<span className="break-all inline-block">{label}</span>
</a>
</li>
Expand Down

0 comments on commit 6dfcfa9

Please sign in to comment.