File tree Expand file tree Collapse file tree 12 files changed +46
-17
lines changed Expand file tree Collapse file tree 12 files changed +46
-17
lines changed Original file line number Diff line number Diff line change 90
90
"REPLY_TO_REVIEW_MESSAGE" : " Leave your reply to the above review" ,
91
91
"FACE_SELECTION_REVIEW_MESSAGE" : " Select the face which shows how you feel about the above review" ,
92
92
"ADDITIONAL_COMMENTS_PLACEHOLDER" : " Enter additional comments here" ,
93
- "FEEDBACK_PHOTO_UPLOAD_LABEL" : " Feedback photo upload"
93
+ "FEEDBACK_PHOTO_UPLOAD_LABEL" : " Feedback photo upload" ,
94
+ "VALIDATION" : {
95
+ "SELF_REVIEW_PROHIBITED" : " Self-review is prohibited"
96
+ }
94
97
}
95
98
},
96
99
"POPUP" : {
Original file line number Diff line number Diff line change 90
90
"REPLY_TO_REVIEW_MESSAGE" : " Leave your reply to the above review" ,
91
91
"FACE_SELECTION_REVIEW_MESSAGE" : " Select the face which shows how you feel about the above review" ,
92
92
"ADDITIONAL_COMMENTS_PLACEHOLDER" : " Enter additional comments here" ,
93
- "FEEDBACK_PHOTO_UPLOAD_LABEL" : " Feedback photo upload"
93
+ "FEEDBACK_PHOTO_UPLOAD_LABEL" : " Feedback photo upload" ,
94
+ "VALIDATION" : {
95
+ "SELF_REVIEW_PROHIBITED" : " Self-review is prohibited"
96
+ }
94
97
}
95
98
},
96
99
"POPUP" : {
Original file line number Diff line number Diff line change 90
90
"REPLY_TO_REVIEW_MESSAGE" : " Deja tu respuesta a la reseña anterior" ,
91
91
"FACE_SELECTION_REVIEW_MESSAGE" : " Selecciona la cara que muestra cómo te sientes sobre la reseña anterior" ,
92
92
"ADDITIONAL_COMMENTS_PLACEHOLDER" : " Introduce comentarios adicionales aquí" ,
93
- "FEEDBACK_PHOTO_UPLOAD_LABEL" : " Subir foto de retroalimentación"
93
+ "FEEDBACK_PHOTO_UPLOAD_LABEL" : " Subir foto de retroalimentación" ,
94
+ "VALIDATION" : {
95
+ "SELF_REVIEW_PROHIBITED" : " La autoevaluación está prohibida"
96
+ }
94
97
}
95
98
},
96
99
"POPUP" : {
Original file line number Diff line number Diff line change 90
90
"REPLY_TO_REVIEW_MESSAGE" : " Xɔ le ŋutɔ sia sɔlɔɖe ɖe doaɖe lɔme" ,
91
91
"FACE_SELECTION_REVIEW_MESSAGE" : " Dzi le vavaŋuto ɖe ŋutɔ le wo ɖe sɔlɔɖe ɖe lɔme dziwo" ,
92
92
"ADDITIONAL_COMMENTS_PLACEHOLDER" : " Xɔ le vavaŋuto ŋutɔ kple kple" ,
93
- "FEEDBACK_PHOTO_UPLOAD_LABEL" : " Photo na vovɔ"
93
+ "FEEDBACK_PHOTO_UPLOAD_LABEL" : " Photo na vovɔ" ,
94
+ "VALIDATION" : {
95
+ "SELF_REVIEW_PROHIBITED" : " Wòdzɔ wò nɔnɔ kple wòkplɔ míaɖu o"
96
+ }
94
97
}
95
98
},
96
99
"POPUP" : {
Original file line number Diff line number Diff line change 90
90
"REPLY_TO_REVIEW_MESSAGE" : " Bar amsar ku ga bita ta sama" ,
91
91
"FACE_SELECTION_REVIEW_MESSAGE" : " Zaɓi fuskar da ke nuna yadda kuke ji game da mai siyarwa da ke sama" ,
92
92
"ADDITIONAL_COMMENTS_PLACEHOLDER" : " Shigar da karin sharhi a nan" ,
93
- "FEEDBACK_PHOTO_UPLOAD_LABEL" : " Loda Hoto Martani"
93
+ "FEEDBACK_PHOTO_UPLOAD_LABEL" : " Loda Hoto Martani" ,
94
+ "VALIDATION" : {
95
+ "SELF_REVIEW_PROHIBITED" : " Binciken kai an hana"
96
+ }
94
97
}
95
98
},
96
99
"POPUP" : {
Original file line number Diff line number Diff line change 90
90
"REPLY_TO_REVIEW_MESSAGE" : " 위 리뷰에 대한 답장을 남기세요" ,
91
91
"FACE_SELECTION_REVIEW_MESSAGE" : " 위 리뷰에 대한 느낌을 나타내는 얼굴을 선택하세요" ,
92
92
"ADDITIONAL_COMMENTS_PLACEHOLDER" : " 추가 의견을 입력하세요" ,
93
- "FEEDBACK_PHOTO_UPLOAD_LABEL" : " 피드백 사진 업로드"
93
+ "FEEDBACK_PHOTO_UPLOAD_LABEL" : " 피드백 사진 업로드" ,
94
+ "VALIDATION" : {
95
+ "SELF_REVIEW_PROHIBITED" : " 자기 평가는 금지되어 있습니다"
96
+ }
94
97
}
95
98
},
96
99
"POPUP" : {
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ const SellerRegistrationForm = () => {
225
225
formDataToSend . append ( 'image' , '' ) ;
226
226
}
227
227
228
- logger . info ( 'Registration form data:' , JSON . stringify ( { formDataToSend } ) ) ;
228
+ logger . info ( 'Registration form data:' , Object . fromEntries ( formDataToSend . entries ( ) ) ) ;
229
229
230
230
try {
231
231
const data = await registerSeller ( formDataToSend ) ;
Original file line number Diff line number Diff line change @@ -128,9 +128,9 @@ function SellerReviews({
128
128
< Image
129
129
src = { item . image }
130
130
alt = "emoji image"
131
- layout = " fill"
132
- objectFit = "cover "
133
- sizes = "(max-width: 768px) 100vw, 64px"
131
+ fill
132
+ sizes = "(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw "
133
+ style = { { objectFit : 'contain' , maxHeight : '200px' , maxWidth : '100%' } }
134
134
/>
135
135
</ div >
136
136
< div className = "flex gap-3 text-[#828282]" >
Original file line number Diff line number Diff line change @@ -113,10 +113,13 @@ export default function BuyFromSellerForm({ params }: { params: { id: string } }
113
113
{ /* Seller Profile */ }
114
114
< div className = "flex gap-4 align-center mb-6 relative" >
115
115
< div className = "rounded-[50%] w-[65px] h-[65px] relative" >
116
- < Image alt = "seller logo"
117
- src = { sellerShopInfo . image && sellerShopInfo . image . trim ( ) !== "" ? sellerShopInfo . image : process . env . NEXT_PUBLIC_IMAGE_PLACEHOLDER_URL || '/images/shared/upload.png' }
118
- fill = { true }
116
+ < Image
119
117
className = "rounded-[50%]"
118
+ src = { sellerShopInfo . image && sellerShopInfo . image . trim ( ) !== "" ? sellerShopInfo . image : process . env . NEXT_PUBLIC_IMAGE_PLACEHOLDER_URL || '/images/shared/upload.png' }
119
+ alt = "seller logo"
120
+ fill
121
+ sizes = "(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
122
+ style = { { objectFit : 'cover' , maxHeight : '200px' , maxWidth : '100%' } }
120
123
/>
121
124
</ div >
122
125
< div className = "my-auto" >
Original file line number Diff line number Diff line change @@ -93,6 +93,10 @@ export default function EmojiPicker(props: any) {
93
93
const handleSave = async ( ) => {
94
94
try {
95
95
if ( props . currentUser ) {
96
+ if ( props . currentUser . pi_uid === props . sellerId ) {
97
+ logger . warn ( `Attempted self review by user ${ props . currentUser . pi_uid } ` ) ;
98
+ toast . error ( t ( 'SCREEN.REPLY_TO_REVIEW.VALIDATION.SELF_REVIEW_PROHIBITED' ) ) ;
99
+ }
96
100
if ( reviewEmoji === null ) {
97
101
logger . warn ( 'Attempted to save review without selecting an emoji.' ) ;
98
102
return window . alert ( t ( 'SHARED.REACTION_RATING.VALIDATION.SELECT_EMOJI_EXPRESSION' ) ) ;
You can’t perform that action at this time.
0 commit comments