Skip to content

Commit c906fc1

Browse files
authoredMar 22, 2025
[25.03.22 / TASK-140] Feature - 조회수 변동 기반 조회 (#26)
* modify: 오늘조회순 추가 오늘조회순보다 짧으면서 이해하기 쉬운 단어가 떠오르지 않네요 * modify: 회의 의견 반영
1 parent 881b365 commit c906fc1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 
+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export const SORT_TYPE = {
22
작성일순: '',
33
조회순: 'dailyViewCount',
4+
조회변동순: 'viewGrowth',
45
좋아요순: 'dailyLikeCount',
56
} as const;

‎src/types/searchParams.type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { SORT_TYPE } from '@/constants';
22

3-
export type SortKey = '작성일순' | '조회순' | '좋아요순';
3+
export type SortKey = '작성일순' | '조회순' | '조회변동순' | '좋아요순';
44
export type SortValue = (typeof SORT_TYPE)[keyof typeof SORT_TYPE];
55

66
export type SortType = Record<SortKey, string>;

0 commit comments

Comments
 (0)