Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/components/modal/InterestModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface Props {
onClose?: () => void;
}

export default function InterestModal({ category, interest, onClose }: Props) {
export default function InterestModal({ category, interest, image, onClose }: Props) {
useEffect(() => {
document.body.style.overflow = 'hidden';
return () => {
Expand Down Expand Up @@ -43,7 +43,10 @@ export default function InterestModal({ category, interest, onClose }: Props) {
}}
onClick={(e) => e.stopPropagation()}
>
<h3 className="typo-heading3 font-bold">{category}</h3>
<div>
<h3 className="typo-heading3 font-bold">{category}</h3>
<img src={image} />
</div>
<div className="flex h-7 px-3 bg-(--gray-200) mt-4 rounded-[100px] items-center">
<p className="justify-center">{interest}</p>
</div>
Expand Down
25 changes: 13 additions & 12 deletions src/pages/MatchingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { useNavigate } from 'react-router-dom';
import SpectrumLabel from '../components/common/SpectrumLabel';
import Comment from '../components/match/Comment';
import Mission from '../components/match/Mission';
import ChatInput from '../components/match/ChatInput';
import InputField from '../components/match/InputField';
// import ChatInput from '../components/match/ChatInput';
// import InputField from '../components/match/InputField';
import Header from '../components/common/Header';
import PictureMissionModal from '../components/modal/PictureMissionModal';
import MissionSuccessModal from '../components/modal/MissionSuccessModal';
Expand All @@ -19,7 +19,8 @@ type MissionData = {

export default function MatchingPage() {
const navigate = useNavigate();
const [inputValues, setInputValues] = useState(['', '', '', '']);

// const [inputValue, setInputValue] = useState('');
const [missions, setMissions] = useState<MissionData[]>([
{ number: 1, isCompleted: true, mission: '미션 1 설명' },
{ number: 2, isCompleted: true, mission: '미션 2 설명' },
Expand All @@ -33,10 +34,10 @@ export default function MatchingPage() {
const [showFinalModal, setShowFinalModal] = useState(false);
const [showRecordModal, setShowRecordModal] = useState(false);

const handleSend = (text: string) => {
console.log('전송:', text);
// 전송 로직 추가
};
// const handleSend = (text: string) => {
// console.log('전송:', text);
// // 전송 로직 추가
// };

const handleMissionClick = (mission: MissionData) => {
if (!mission.isCompleted) {
Expand Down Expand Up @@ -74,11 +75,11 @@ export default function MatchingPage() {
setShowRecordModal(true);
};

const handleInputChange = (index: number, value: string) => {
const nextValues = [...inputValues];
nextValues[index] = value;
setInputValues(nextValues);
};
// const handleInputChange = (index: number, value: string) => {
// const nextValues = [...inputValues];
// nextValues[index] = value;
// setInputValues(nextValues);
// };

return (
<div className="px-[30px] py-6 flex flex-col items-center">
Expand Down