This commit is contained in:
shafi54 2026-02-04 15:55:17 +05:30
parent c02f2c84f5
commit a83168b324
3 changed files with 4 additions and 4 deletions

View file

@ -824,7 +824,7 @@ export const orderRouter = router({
updateUserNotes: protectedProcedure
.input(
z.object({
id: z.string(),
id: z.number(),
userNotes: z.string(),
})
)

View file

@ -236,7 +236,7 @@ export default function OrderDetails() {
</MyTouchableOpacity>
<MyTouchableOpacity
onPress={() => {
updateNotesMutation.mutate({ id: order.orderId, userNotes: notesInput });
updateNotesMutation.mutate({ id: order.id, userNotes: notesInput });
}}
disabled={updateNotesMutation.isPending}
style={tw`px-3 py-1 bg-brand500 rounded-lg`}
@ -435,7 +435,7 @@ export default function OrderDetails() {
setComplaintDialogOpen(false);
refetch();
}}
orderId={order.orderId}
orderId={order.id}
/>
</BottomDialog>
</View>

View file

@ -443,7 +443,7 @@ const ProductDetail: React.FC<ProductDetailProps> = ({ productId, isFlashDeliver
{/* Review Form - Moved above or keep below? Usually users want to read reviews first, but if few reviews, writing is good. The original had form then reviews. I will keep format but make it nicer. */}
<View style={tw`mb-6`}>
<ReviewForm productId={productDetail.id} onReviewSubmitted={handleReviewSubmitted} />
<ReviewForm productId={productDetail!.id} onReviewSubmitted={handleReviewSubmitted} />
</View>
<View style={tw`bg-white rounded-3xl shadow-sm border border-gray-100 overflow-hidden`}>