Skip to content

Commit

Permalink
Style: 채팅 팝업 버튼 다크모드 디자인 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eunji-0623 committed Jul 30, 2024
1 parent 77afba4 commit 19fd74b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions components/Popup/ChatPopup.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useState, useEffect } from 'react';
import { CloseButtonBold } from '../Button/Button';
import {
ChatListProps,
ChatPopupProps,
Expand All @@ -9,8 +8,6 @@ import {
import socket from '@/server/server';
import { useUserData } from '@/hooks/useUserData';
import Image from 'next/image';
import { useRecoilValue } from 'recoil';
import { darkModeState } from '@/states/themeState';

function ChatPopup({
closePopup,
Expand All @@ -21,7 +18,6 @@ function ChatPopup({
const [senderId, setSenderId] = useState(0);
const [isSendEnabled, setIsSendEnabled] = useState(true);
const [isEnter, setIsEnter] = useState(false);
const isDarkMode = useRecoilValue(darkModeState);

const handleClickPrev = () => {
setIsEnter(false);
Expand Down Expand Up @@ -63,18 +59,21 @@ function ChatPopup({
{isEnter && (
<button onClick={handleClickPrev}>
<Image
src={
isDarkMode
? 'icon/prev_arrow_dark.svg'
: '/icon/prev_arrow.svg'
}
src="/icon/prev_arrow.svg"
alt="이전"
width={20}
height={20}
/>
</button>
)}
<CloseButtonBold onClick={closePopup} />
<button onClick={closePopup}>
<Image
src="/icon/chat_close.svg"
alt="닫기"
width={24}
height={24}
/>
</button>
</div>
</div>
<div className="flex flex-col h-[500px]">
Expand Down
1 change: 1 addition & 0 deletions public/icon/chat_close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/icon/prev_arrow_dark.svg

This file was deleted.

0 comments on commit 19fd74b

Please sign in to comment.