We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b4bb80 commit 544897eCopy full SHA for 544897e
library/src/containers/Sidebar/Sidebar.tsx
@@ -344,7 +344,7 @@ const OperationItem: React.FunctionComponent<OperationItemProps> = ({
344
config,
345
isAsyncAPIv2,
346
});
347
-
+ const bgColors = ['bg-red-600', 'bg-orange-600', 'bg-green-600'];
348
return (
349
<li key={`menu-operation-list-${operationHrefId}`}>
350
<a
@@ -353,7 +353,7 @@ const OperationItem: React.FunctionComponent<OperationItemProps> = ({
353
onClick={() => setShowSidebar(false)}
354
>
355
<span
356
- className={`${backgroundColor} font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs`}
+ className={`font-bold h-6 no-underline text-white uppercase p-1 mr-2 rounded text-xs ${bgColors.includes(backgroundColor) && backgroundColor}`}
357
title={typeLabel}
358
359
{typeLabel}
0 commit comments