fix: restore CartSnackbar styling and 'Перейти в корзину' action button in NotificationStack
This commit is contained in:
@@ -21,7 +21,12 @@ export function AddToCartButton(props: Props) {
|
||||
mutationFn: () => addToCart({ productId, qty }),
|
||||
onSuccess: () => {
|
||||
void qc.invalidateQueries({ queryKey: ['me', 'cart'] })
|
||||
addNotification({ type: 'info', message: 'Товар добавлен в корзину' })
|
||||
addNotification({
|
||||
type: 'success',
|
||||
message: 'Товар добавлен в корзину',
|
||||
actionLabel: 'Перейти в корзину',
|
||||
actionPath: '/cart',
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user