Skip to content

Commit

Permalink
fix: bad React.FC typing for search components
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Sep 16, 2024
1 parent 6083bd1 commit db705b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/components/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const checkQueryParamsEqual = (qp1: QueryParams, qp2: QueryParams): boolean => {
return params.reduce((acc, v) => acc && qp1[v] === qp2[v], true);
};

const RoutedSearch: React.FC = () => {
const RoutedSearch = () => {
const dispatch = useAppDispatch();
const location = useLocation();
const navigate = useNavigate();
Expand Down Expand Up @@ -113,7 +113,7 @@ const SEARCH_SPACE_ITEM_STYLE = { item: WIDTH_100P_STYLE };
const SEARCH_SECTION_SPACE_ITEM_STYLE = { item: { display: 'flex', justifyContent: 'center' } };
const SEARCH_SECTION_STYLE = { maxWidth: 1200 };

const Search: React.FC = () => {
const Search = () => {
const t = useTranslationCustom();

const { isFetchingFields: isFetchingSearchFields, querySections: searchSections } = useAppSelector(
Expand Down

0 comments on commit db705b0

Please sign in to comment.