Skip to content

Commit

Permalink
fix: remove unused usePerComponent hook
Browse files Browse the repository at this point in the history
  • Loading branch information
samshara committed Jan 29, 2025
1 parent 7c22972 commit 98b5caf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 57 deletions.
56 changes: 0 additions & 56 deletions app/src/hooks/domain/usePerComponent.ts

This file was deleted.

4 changes: 3 additions & 1 deletion app/src/views/OperationalLearning/Filters/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ import { type EntriesAsList } from '@togglecorp/toggle-form';

import CountryMultiSelectInput, { type CountryOption } from '#components/domain/CountryMultiSelectInput';
import RegionSelectInput, { type RegionOption } from '#components/domain/RegionSelectInput';
import { type PerComponents } from '#contexts/domain';
import { type components } from '#generated/types';
import { type DisasterType } from '#hooks/domain/useDisasterType';
import { type PerComponent } from '#hooks/domain/usePerComponent';
import { type SecondarySector } from '#hooks/domain/useSecondarySector';
import { getFormattedComponentName } from '#utils/domain/per';
import { type GoApiResponse } from '#utils/restRequest';

import i18n from './i18n.json';

export type PerComponent = NonNullable<PerComponents['results']>[number];

type OpsLearningOrganizationType = NonNullable<GoApiResponse<'/api/v2/ops-learning/organization-type/'>['results']>[number];
export type PerLearningType = components<'read'>['schemas']['PerLearningTypeEnum'];

Expand Down

0 comments on commit 98b5caf

Please sign in to comment.