Skip to content

Commit

Permalink
Use shortTitle instead of css to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans committed Oct 30, 2023
1 parent 5dacc64 commit 80cc3e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/projects/components/OperatorFilterDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { RadioGroup } from "@headlessui/react"
import clsx from "clsx"
import router from "next/router"
import React from "react"
import { shortTitle } from "src/core/components/text"
import { useSlugs } from "src/core/hooks"
import getOperatorsWithCount from "src/operators/queries/getOperatorsWithCount"

Expand Down Expand Up @@ -59,8 +60,8 @@ export const OperatorFilterDropdown: React.FC = () => {
)
}
>
<RadioGroup.Label className="uppercase font-semibold" as="span">
{operator.slug}
<RadioGroup.Label className="font-semibold" as="span">
{shortTitle(operator.slug)}
</RadioGroup.Label>
</RadioGroup.Option>
))}
Expand Down

0 comments on commit 80cc3e9

Please sign in to comment.