enh
This commit is contained in:
parent
c02f2c84f5
commit
a83168b324
3 changed files with 4 additions and 4 deletions
|
|
@ -824,7 +824,7 @@ export const orderRouter = router({
|
||||||
updateUserNotes: protectedProcedure
|
updateUserNotes: protectedProcedure
|
||||||
.input(
|
.input(
|
||||||
z.object({
|
z.object({
|
||||||
id: z.string(),
|
id: z.number(),
|
||||||
userNotes: z.string(),
|
userNotes: z.string(),
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -236,7 +236,7 @@ export default function OrderDetails() {
|
||||||
</MyTouchableOpacity>
|
</MyTouchableOpacity>
|
||||||
<MyTouchableOpacity
|
<MyTouchableOpacity
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
updateNotesMutation.mutate({ id: order.orderId, userNotes: notesInput });
|
updateNotesMutation.mutate({ id: order.id, userNotes: notesInput });
|
||||||
}}
|
}}
|
||||||
disabled={updateNotesMutation.isPending}
|
disabled={updateNotesMutation.isPending}
|
||||||
style={tw`px-3 py-1 bg-brand500 rounded-lg`}
|
style={tw`px-3 py-1 bg-brand500 rounded-lg`}
|
||||||
|
|
@ -435,7 +435,7 @@ export default function OrderDetails() {
|
||||||
setComplaintDialogOpen(false);
|
setComplaintDialogOpen(false);
|
||||||
refetch();
|
refetch();
|
||||||
}}
|
}}
|
||||||
orderId={order.orderId}
|
orderId={order.id}
|
||||||
/>
|
/>
|
||||||
</BottomDialog>
|
</BottomDialog>
|
||||||
</View>
|
</View>
|
||||||
|
|
|
||||||
|
|
@ -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. */}
|
{/* 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`}>
|
<View style={tw`mb-6`}>
|
||||||
<ReviewForm productId={productDetail.id} onReviewSubmitted={handleReviewSubmitted} />
|
<ReviewForm productId={productDetail!.id} onReviewSubmitted={handleReviewSubmitted} />
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View style={tw`bg-white rounded-3xl shadow-sm border border-gray-100 overflow-hidden`}>
|
<View style={tw`bg-white rounded-3xl shadow-sm border border-gray-100 overflow-hidden`}>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue