Skip to content

Commit

Permalink
Feat: #35 테이블 헤더의 필터 메뉴를 위한 상태 추가 (atom)
Browse files Browse the repository at this point in the history
  • Loading branch information
somedaycode committed Jun 17, 2021
1 parent 4f7b1b1 commit d8656f8
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions FE/issue-tracker/src/store/atoms/issueFilter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { atom } from 'recoil';

const milestoneFilterList = atom({
key: 'milestoneFilterList',
default: {
query: 'milestones',
data: [],
cachingTime: 0,
},
});

const labelFilterList = atom({
key: 'labelFilterList',
default: {
query: 'labels',
data: [],
cachingTime: 0,
},
});

const assigneeFilterList = atom({
key: 'assigneeFilterList',
default: {
query: 'assignees',
data: [],
cachingTime: 0,
},
});

const authorFilterList = atom({
key: 'authorFilterList',
default: {
query: 'authors',
data: [],
cachingTime: 0,
},
});

export {
milestoneFilterList,
labelFilterList,
assigneeFilterList,
authorFilterList,
};

0 comments on commit d8656f8

Please sign in to comment.