We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3295c31 commit ca19cbdCopy full SHA for ca19cbd
frontend/src/components/common/OrdersTable/index.tsx
@@ -76,16 +76,8 @@ export const OrdersTable = ({orders, event}: OrdersTableProps) => {
76
77
const handleMarkAsPaid = (eventId: IdParam, orderId: IdParam) => {
78
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
- }
+ onSuccess: () => showSuccess(t`Order marked as paid`),
+ onError: () => showError(t`There was an error marking the order as paid`)
89
});
90
}
91
0 commit comments