You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
410 B
20 lines
410 B
export enum SortPropertyEnum {
|
|
RATING_DESC = 'rating',
|
|
RATING_ASC = '-rating',
|
|
TITLE_DESC = 'title',
|
|
TITLE_ASC = '-title',
|
|
PRICE_DESC = 'price',
|
|
PRICE_ASC = '-price',
|
|
}
|
|
|
|
export type Sort = {
|
|
name: string;
|
|
sortProperty: SortPropertyEnum;
|
|
};
|
|
|
|
export interface FilterSliceState {
|
|
searchValue: string;
|
|
categoryId: number;
|
|
currentPage: number;
|
|
sort: Sort;
|
|
} |