Skip to content

Commit

Permalink
[Simplyfy] interface 부분을 같은 위치로 변경 #32
Browse files Browse the repository at this point in the history
why
같은 역할을 하는 FeedVars interface가 다른 인터페이스들과 떨어져있어서 가독성이 떨어짐

how
FeedVars 인터페이스를 같은 위치로 이동
  • Loading branch information
WooYeonSeo committed Nov 26, 2019
1 parent 43be102 commit 8afcbfb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/src/composition/Feed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ interface Feeds {
feeds: IFeed[];
}

interface FeedVars {
first: number;
currentCursor: string;
}

const GET_FEEDS = gql`
query getfeeds($first: Int, $currentCursor: String) {
feeds(first: $first, cursor: $currentCursor) {
Expand All @@ -29,10 +34,6 @@ const Testdiv = styled.div`
height: 50px;
`;

interface FeedVars {
first: number;
currentCursor: string;
}
const OFFSET = 4;
const FeedContainer = () => {
const [feeds, setFeeds] = useState<IFeed[]>([]);
Expand Down

0 comments on commit 8afcbfb

Please sign in to comment.