Skip to content

Commit c45aeb1

Browse files
committed
chore: 미사용 props 선언문 제거
1 parent 695cdcd commit c45aeb1

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed

frontend/src/components/chat/ChatList.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import styled from 'styled-components';
22
import QuestionCard from './QuestionCard';
33
import { useEffect, useRef } from 'react';
44

5-
interface ChatListProps {}
6-
75
const sampleData = [
86
{ user: '고양이', message: 'ㅇㅅㅇ', type: 'normal' },
97
{ user: '강아지', message: 'ㅎㅇㅎㅇ', type: 'normal' },
@@ -23,7 +21,7 @@ function getRandomBrightColor(): string {
2321
return `hsl(${hue}, ${saturation}%, ${lightness}%)`;
2422
}
2523

26-
export const ChatList = ({}: ChatListProps) => {
24+
export const ChatList = () => {
2725
const chatListRef = useRef<HTMLDivElement | null>(null);
2826

2927
useEffect(() => {

frontend/src/components/chat/ChatQuestionSection.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import { useState } from 'react';
22
import styled from 'styled-components';
33
import QuestionCard from './QuestionCard';
44

5-
interface ChatQuestionSectionProps {}
6-
7-
export const ChatQuestionSection = ({}: ChatQuestionSectionProps) => {
5+
export const ChatQuestionSection = () => {
86
const [expanded, setExpanded] = useState(false);
97

108
const toggleSection = () => {

frontend/src/components/chat/ChatRoom.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import ChatInput from './ChatInput';
44
import ChatList from './ChatList';
55
import ChatQuestionSection from './ChatQuestionSection';
66

7-
interface ChatRoomProps {}
8-
9-
export const ChatRoom = ({}: ChatRoomProps) => {
7+
export const ChatRoom = () => {
108
return (
119
<ChatRoomContainer>
1210
<ChatHeader />

frontend/src/components/chat/LayerPopup.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import styled from 'styled-components';
22

3-
interface LayerPopupProps {}
4-
5-
export const LayerPopup = ({}: LayerPopupProps) => {
3+
export const LayerPopup = () => {
64
return (
75
<LayerPopupContainer>
86
<LayerPopupWrapper>

frontend/src/components/chat/NoticeCard.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import styled from 'styled-components';
22
import CloseIcon from '@assets/icons/close.svg';
33

4-
interface NoticeCardProps {}
5-
6-
export const NoticeCard = ({}: NoticeCardProps) => {
4+
export const NoticeCard = () => {
75
return (
86
<NoticeCardContainer>
97
<NoticeCardHeader>

0 commit comments

Comments
 (0)