Skip to content

Commit

Permalink
conflict check
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryan4884 committed Oct 14, 2024
1 parent 6a45a03 commit 2570c9f
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions library/src/containers/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,25 +348,20 @@ 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'];
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)}
>
<span
className={`font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs ${bgColors.includes(backgroundColor) && backgroundColor}`}
<strong
className={`h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs ${bgColors.includes(backgroundColor) && backgroundColor}`}
title={typeLabel}
>
{typeLabel}
</span>
</strong>
<span className="break-all inline-block">{label}</span>
</a>
</li>
Expand Down Expand Up @@ -423,4 +418,4 @@ const ItemsByTagItem: React.FunctionComponent<ItemsByTagItemProps> = ({
</ul>
</div>
);
};
};

Check failure on line 421 in library/src/containers/Sidebar/Sidebar.tsx

View workflow job for this annotation

GitHub Actions / Test NodeJS PR - ubuntu-latest

Insert `⏎`

0 comments on commit 2570c9f

Please sign in to comment.