Skip to content

Commit

Permalink
chore: 미사용 props 선언문 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
gominzip committed Nov 13, 2024
1 parent 695cdcd commit c45aeb1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
4 changes: 1 addition & 3 deletions frontend/src/components/chat/ChatList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import styled from 'styled-components';
import QuestionCard from './QuestionCard';
import { useEffect, useRef } from 'react';

interface ChatListProps {}

const sampleData = [
{ user: '고양이', message: 'ㅇㅅㅇ', type: 'normal' },
{ user: '강아지', message: 'ㅎㅇㅎㅇ', type: 'normal' },
Expand All @@ -23,7 +21,7 @@ function getRandomBrightColor(): string {
return `hsl(${hue}, ${saturation}%, ${lightness}%)`;
}

export const ChatList = ({}: ChatListProps) => {
export const ChatList = () => {
const chatListRef = useRef<HTMLDivElement | null>(null);

useEffect(() => {
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/components/chat/ChatQuestionSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { useState } from 'react';
import styled from 'styled-components';
import QuestionCard from './QuestionCard';

interface ChatQuestionSectionProps {}

export const ChatQuestionSection = ({}: ChatQuestionSectionProps) => {
export const ChatQuestionSection = () => {
const [expanded, setExpanded] = useState(false);

const toggleSection = () => {
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/components/chat/ChatRoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import ChatInput from './ChatInput';
import ChatList from './ChatList';
import ChatQuestionSection from './ChatQuestionSection';

interface ChatRoomProps {}

export const ChatRoom = ({}: ChatRoomProps) => {
export const ChatRoom = () => {
return (
<ChatRoomContainer>
<ChatHeader />
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/components/chat/LayerPopup.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import styled from 'styled-components';

interface LayerPopupProps {}

export const LayerPopup = ({}: LayerPopupProps) => {
export const LayerPopup = () => {
return (
<LayerPopupContainer>
<LayerPopupWrapper>
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/components/chat/NoticeCard.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import styled from 'styled-components';
import CloseIcon from '@assets/icons/close.svg';

interface NoticeCardProps {}

export const NoticeCard = ({}: NoticeCardProps) => {
export const NoticeCard = () => {
return (
<NoticeCardContainer>
<NoticeCardHeader>
Expand Down

0 comments on commit c45aeb1

Please sign in to comment.