Skip to content

Commit

Permalink
chore: added capitalize function in FilterDrawer
Browse files Browse the repository at this point in the history
  • Loading branch information
Franqsanz committed Sep 23, 2024
1 parent 7b0fa3b commit 7071b13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/filters/FilterDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
} from '@chakra-ui/react';

import { DrawerType } from '@components/types';
import { capitalizeWords } from '@utils/utils';
// import { FilterAccordion } from '@components/filters/FilterAccordion';

export function FilterDrawer({
Expand Down Expand Up @@ -190,7 +191,7 @@ export function FilterDrawer({
value={authors}
onChange={() => handleRadioChange('authors', authors)}
>
{authors}
{capitalizeWords(authors)}
<Box as='span' ml='2' color='gray.500'>
({count})
</Box>
Expand Down

0 comments on commit 7071b13

Please sign in to comment.