지불 방식을 선택해주세요.
+ {/* backend - /api/categories/meetingpaymentfilter/ 에서 API - GET*/}
-
-
+ {paymentMethods.map((method, index) => (
+
+ ))}
+
+ {/* backend - /api/categories/meetingagefilter/ 에서 API - GET*/}
연령대를 선택해주세요
-
-
-
-
+ {ageGroups.map((ageGroup, index) => (
+
+ ))}
+ {/* backend - /api/categories/meetinggenderfilter/ 에서 API - GET */}
성별을 선택해주세요
-
-
-
-
-
+ {genderGroups.map((genderGroup, index) => (
+
+ ))}
약속시간을 설정해주세요
@@ -332,46 +385,31 @@ const ThunderPost = () => {
whileTap={{ scale: 0.95 }}
className="flex flex-col items-center justify-center rounded-lg border border-gray-300 px-4 py-2">
![이미지 등록](../images/ThunderImageUpdate.svg)
-
{`${selectedImages.length}/10`}
+
{selectedImage ? '1/1' : '0/1'}
-
- {imagePreviews.length > 0 && (
+
+ {imagePreview && (
- {imagePreviews.map((preview, index) => (
-
-
![{`미리보기]({preview})
-
- {index === 0 && (
-
- 대표사진
-
- )}
+
+
![미리보기]({imagePreview})
+
+
+ 대표사진
- ))}
+
)}
{isUploading && (
사진 업로드 하는 중입니다.
- 현재 {currentUploadingIndex}장의 사진이 업로드 중입니다.
+ 현재 {1}장의 사진이 업로드 중입니다.
{
{/* 지역을 선택해주세요 modal open */}
+ {/* backend - api/categories/locationfilter/ 에서 API - GET */}
지역
- {locations.map((location) => (
+ {locations.map((location, index) => (
- {/* 폼 제출 테스트에 따른 modal open*/}
-
-
- 확인
-
-
-
- {/*
- <>
- 지불 방식: {selectedPayment}
- 연령대: {selectedAgeGroup}
- 성별: {selectedGenderGroup}
-
- 약속시간: {selectedDate ? selectedDate.toLocaleDateString() : ''} {selectedTime}
-
- 지역: {selectedLocation}
- 제목: {watch('title')}
- 내용: {watch('description')}
- 이미지 등록-첫번째 사진이 대표사진이 됩니다.
-
- {imagePreviews.map((preview, index) => (
-
![{`preview-${index}`}]({preview})
- ))}
-
- 최대인원: {maxPeople}
- >
-
- 확인
-
- */}
+ {/* 폼 제출에 문제 알림 modal open*/}
>
);
};