Skip to content

Commit

Permalink
fix: 린트 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
brgndyy committed Sep 20, 2024
1 parent 4bc0812 commit 0b0bc9d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/DiscussionList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import DiscussionListItem from './DiscussionListItem';
import { useState } from 'react';

export default function DiscussionList() {
const [mission, setMission] = useState<string>('all');
const [hashTag, setHashTag] = useState<string>('all');
const [mission] = useState<string>('all');
const [hashTag] = useState<string>('all');

const { data: discussions } = useDiscussions(mission, hashTag);
return (
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/hooks/queries/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export const userKeys = {
info: ['userInfo'],
};

export const discussionsKeys = {
all: ['all'],
};

export const dashboardKeys = {
discussion: ['discussions'],
comments: ['comments'],
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,12 @@ export interface Comments {
contentTitle: string;
contentCommentCount: number;
}

export interface Discussion {
id: number;
title: string;
mission: string;
hashTags: HashTag[];
member: Omit<UserInfo, 'description'>;
commentCount: number;
}

0 comments on commit 0b0bc9d

Please sign in to comment.