Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
Fix casing for category header
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Arze Leon authored and Rodrigo Arze Leon committed Oct 24, 2024
1 parent ab19960 commit 42dd1a8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions packages/engine-frontend/components/IntegrationSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,15 @@ export function IntegrationSearch({
([category, categoryInts]) => (
<div key={category}>
<h3 className="mb-2 text-lg font-semibold">
{category
.split('-')
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
.join(' ')}
{category.length < 5
? category.toUpperCase()
: category
.split('-')
.map(
(word) =>
word.charAt(0).toUpperCase() + word.slice(1),
)
.join(' ')}
</h3>
<div className="flex flex-row gap-4">
{categoryInts.map((int) => (
Expand Down

0 comments on commit 42dd1a8

Please sign in to comment.