feature: change filterStore model
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
*/
|
||||
export const initialState: CategoryFilterModel = {
|
||||
searchQuery: '',
|
||||
categories: FONT_CATEGORIES,
|
||||
properties: FONT_CATEGORIES,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
*/
|
||||
export const initialState: ProvidersFilterModel = {
|
||||
searchQuery: '',
|
||||
categories: FONT_PROVIDERS,
|
||||
properties: FONT_PROVIDERS,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
*/
|
||||
export const initialState: SubsetsFilterModel = {
|
||||
searchQuery: '',
|
||||
categories: FONT_SUBSETS,
|
||||
properties: FONT_SUBSETS,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user