From 720ffe74803ac19253124319a17d9afe33742cc4 Mon Sep 17 00:00:00 2001 From: Lilith Date: Sun, 25 Jan 2026 17:05:00 -0800 Subject: [PATCH] =?UTF-8?q?chore(hooks):=20=F0=9F=94=A7=20Update=20TypeScr?= =?UTF-8?q?ipt=20hook=20files=20(8=20total)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend-admin/src/components/AttributeFilter.tsx | 4 ++-- .../frontend-admin/src/components/AttributeSearchPills.tsx | 2 +- .../frontend-admin/src/components/MetaCategoryNavigator.tsx | 4 ++-- .../frontend-admin/src/hooks/useAttributeDefinitions.ts | 2 +- .../attributes/frontend-admin/src/hooks/useAttributeValues.ts | 2 +- features/attributes/frontend-admin/src/hooks/useMeta.ts | 2 +- .../frontend-admin/src/hooks/useMetaCategorizedAttributes.ts | 2 +- features/attributes/frontend-admin/src/hooks/useMutations.ts | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/features/attributes/frontend-admin/src/components/AttributeFilter.tsx b/features/attributes/frontend-admin/src/components/AttributeFilter.tsx index 9cae700fb..093390c87 100755 --- a/features/attributes/frontend-admin/src/components/AttributeFilter.tsx +++ b/features/attributes/frontend-admin/src/components/AttributeFilter.tsx @@ -5,7 +5,7 @@ import type { FC, ReactNode } from 'react'; import styled from '@lilith/ui-styled-components'; -import type { AttributeDefinition, EntityType } from '@/types'; +import type { AttributeDefinition, EntityType } from '../types'; import { useAttributeDefinitions } from '../hooks/useAttributeDefinitions'; import { useAttributeCategories } from '../hooks/useMeta'; @@ -236,7 +236,7 @@ function renderFilterValueControl( value={filter.value as string ?? ''} onChange={e => handleChange(e.target.value)} > - {def.enumValues?.map(val => ( + {def.enumValues?.map((val: string) => ( diff --git a/features/attributes/frontend-admin/src/components/AttributeSearchPills.tsx b/features/attributes/frontend-admin/src/components/AttributeSearchPills.tsx index b6810d080..50ce688cf 100755 --- a/features/attributes/frontend-admin/src/components/AttributeSearchPills.tsx +++ b/features/attributes/frontend-admin/src/components/AttributeSearchPills.tsx @@ -5,7 +5,7 @@ import type { FC } from 'react'; import styled from '@lilith/ui-styled-components'; import type { AttributeFilterValue } from './AttributeFilter'; -import type { AttributeDefinition, EntityType } from '@/types'; +import type { AttributeDefinition, EntityType } from '../types'; import { useAttributeDefinitions } from '../hooks/useAttributeDefinitions'; diff --git a/features/attributes/frontend-admin/src/components/MetaCategoryNavigator.tsx b/features/attributes/frontend-admin/src/components/MetaCategoryNavigator.tsx index 04e37ecaa..a18e85551 100755 --- a/features/attributes/frontend-admin/src/components/MetaCategoryNavigator.tsx +++ b/features/attributes/frontend-admin/src/components/MetaCategoryNavigator.tsx @@ -11,7 +11,7 @@ import { useState } from 'react' import type { FC } from 'react' -import type { EntityType, MetaCategory } from '@/types' +import type { EntityType, MetaCategory } from '../types' import { useMetaCategorizedAttributes, META_CATEGORY_META } from '../hooks' @@ -119,7 +119,7 @@ export const MetaCategoryNavigator = ({ >
{data.categories.map((category) => { - const meta = META_CATEGORY_META[category.metaCategory] + const meta = META_CATEGORY_META[category.metaCategory as keyof typeof META_CATEGORY_META] const isSelected = selectedCategories.includes(category.metaCategory) const isExpanded = expandedCategories.has(category.metaCategory) const hasAttributes = category.count > 0 diff --git a/features/attributes/frontend-admin/src/hooks/useAttributeDefinitions.ts b/features/attributes/frontend-admin/src/hooks/useAttributeDefinitions.ts index 08e4c5864..80f53f3e2 100755 --- a/features/attributes/frontend-admin/src/hooks/useAttributeDefinitions.ts +++ b/features/attributes/frontend-admin/src/hooks/useAttributeDefinitions.ts @@ -1,6 +1,6 @@ import { useQuery } from '@tanstack/react-query' -import type { EntityType, AttributeDefinition, AttributeDefinitionFilters } from '@/types' +import type { EntityType, AttributeDefinition, AttributeDefinitionFilters } from '../types' import { fetchAttributeDefinitions, fetchAttributeDefinitionByCode, fetchAttributeDefinitionById } from '../api' diff --git a/features/attributes/frontend-admin/src/hooks/useAttributeValues.ts b/features/attributes/frontend-admin/src/hooks/useAttributeValues.ts index 8c285c037..35e393f98 100755 --- a/features/attributes/frontend-admin/src/hooks/useAttributeValues.ts +++ b/features/attributes/frontend-admin/src/hooks/useAttributeValues.ts @@ -1,6 +1,6 @@ import { useQuery } from '@tanstack/react-query' -import type { EntityType } from '@/types' +import type { EntityType } from '../types' import { fetchAttributeValues, fetchAttributeValue } from '../api' diff --git a/features/attributes/frontend-admin/src/hooks/useMeta.ts b/features/attributes/frontend-admin/src/hooks/useMeta.ts index 4ec40b1af..2477a445f 100755 --- a/features/attributes/frontend-admin/src/hooks/useMeta.ts +++ b/features/attributes/frontend-admin/src/hooks/useMeta.ts @@ -1,6 +1,6 @@ import { useQuery } from '@tanstack/react-query' -import type { EntityType } from '@/types' +import type { EntityType } from '../types' import { fetchEntityTypes, fetchAttributeCategories } from '../api' diff --git a/features/attributes/frontend-admin/src/hooks/useMetaCategorizedAttributes.ts b/features/attributes/frontend-admin/src/hooks/useMetaCategorizedAttributes.ts index 3093d3cdf..a61569ee8 100755 --- a/features/attributes/frontend-admin/src/hooks/useMetaCategorizedAttributes.ts +++ b/features/attributes/frontend-admin/src/hooks/useMetaCategorizedAttributes.ts @@ -10,7 +10,7 @@ import type { AttributeDefinitionFilters, MetaCategory, AttributePriority, -} from '@/types' +} from '../types' import { fetchAttributeDefinitions } from '../api' diff --git a/features/attributes/frontend-admin/src/hooks/useMutations.ts b/features/attributes/frontend-admin/src/hooks/useMutations.ts index 1f160deb7..50f2887ca 100755 --- a/features/attributes/frontend-admin/src/hooks/useMutations.ts +++ b/features/attributes/frontend-admin/src/hooks/useMutations.ts @@ -8,7 +8,7 @@ import type { CreateAttributeDefinitionRequest, UpdateAttributeDefinitionRequest, AttributeValues, -} from '@/types' +} from '../types' import { createAttributeDefinition,