Skip to content

Commit

Permalink
feat(input): addressed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulWahab3181 committed Aug 2, 2024
1 parent fa8e13c commit c7145cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/App/SideBar/FilterSearch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ type Props = {
anchorEl: HTMLElement | null
}

const formatType = (type: string) => type.replace(/_/g, ' ').replace(/\b\w/g, (char) => char.toUpperCase())

export const FilterSearch = ({ showAllSchemas, setShowAllSchemas, schemaAll, anchorEl }: Props) => {
const handleSchemaTypeClick = (type: string) => {
setSelectedTypes((prevSelectedTypes) =>
Expand Down Expand Up @@ -48,8 +50,6 @@ export const FilterSearch = ({ showAllSchemas, setShowAllSchemas, schemaAll, anc
})
}

const formatType = (type: string) => type.replace(/_/g, ' ').replace(/\b\w/g, (char) => char.toUpperCase())

return (
<SearchFilterPopover
anchorEl={anchorEl}
Expand Down

0 comments on commit c7145cb

Please sign in to comment.