Skip to content

Commit ca19cbd

Browse files
committed
Update orders table
1 parent 3295c31 commit ca19cbd

File tree

1 file changed

+2
-10
lines changed
  • frontend/src/components/common/OrdersTable

1 file changed

+2
-10
lines changed

frontend/src/components/common/OrdersTable/index.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,8 @@ export const OrdersTable = ({orders, event}: OrdersTableProps) => {
7676

7777
const handleMarkAsPaid = (eventId: IdParam, orderId: IdParam) => {
7878
markAsPaidMutation.mutate({eventId, orderId}, {
79-
onSuccess: () => {
80-
notifications.show({
81-
message: t`Order marked as paid`,
82-
icon: <IconCash/>,
83-
position: 'top-center',
84-
})
85-
},
86-
onError: () => {
87-
showError(t`There was an error marking the order as paid`);
88-
}
79+
onSuccess: () => showSuccess(t`Order marked as paid`),
80+
onError: () => showError(t`There was an error marking the order as paid`)
8981
});
9082
}
9183

0 commit comments

Comments
 (0)