fix: restore CartSnackbar styling and 'Перейти в корзину' action button in NotificationStack

This commit is contained in:
Kirill
2026-05-27 23:16:03 +05:00
parent 599b66503d
commit 8133e0cf63
8 changed files with 92 additions and 13 deletions
@@ -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',
})
},
})