feature: change filterStore model

This commit is contained in:
Ilia Mashkov
2026-01-02 21:16:07 +03:00
parent 1bb699ea2d
commit d439e97729
7 changed files with 88 additions and 88 deletions

View File

@@ -1,6 +1,6 @@
import type {
Category,
FilterModel,
Property,
} from '$shared/store/createFilterStore';
/**
@@ -8,7 +8,7 @@ import type {
*/
export type CategoryFilterModel = FilterModel;
export const FONT_CATEGORIES: Category[] = [
export const FONT_CATEGORIES: Property[] = [
{
id: 'serif',
name: 'Serif',

View File

@@ -9,7 +9,7 @@ import {
*/
export const initialState: CategoryFilterModel = {
searchQuery: '',
categories: FONT_CATEGORIES,
properties: FONT_CATEGORIES,
};
/**

View File

@@ -9,7 +9,7 @@ import {
*/
export const initialState: ProvidersFilterModel = {
searchQuery: '',
categories: FONT_PROVIDERS,
properties: FONT_PROVIDERS,
};
/**

View File

@@ -1,6 +1,6 @@
import type {
Category,
FilterModel,
Property,
} from '$shared/store/createFilterStore';
/**
@@ -8,7 +8,7 @@ import type {
*/
export type SubsetsFilterModel = FilterModel;
export const FONT_SUBSETS: Category[] = [
export const FONT_SUBSETS: Property[] = [
{
id: 'latin',
name: 'Latin',

View File

@@ -9,7 +9,7 @@ import {
*/
export const initialState: SubsetsFilterModel = {
searchQuery: '',
categories: FONT_SUBSETS,
properties: FONT_SUBSETS,
};
/**