This commit is contained in:
2025-12-26 18:26:09 -03:00
parent 3cdded360f
commit d0dcc0a953
11 changed files with 574 additions and 460 deletions

View File

@@ -13,10 +13,11 @@ import {
import { useWizard } from '@/components/wizard'
import { type WizardState } from './route'
import { applyDiscount } from './discount'
type ReviewProps = {
state: any
state: WizardState
}
export function Review({ state }: ReviewProps) {
@@ -35,6 +36,8 @@ export function Review({ state }: ReviewProps) {
: 0
const total = subtotal > 0 ? subtotal + discount : 0
console.log(state)
return (
<>
<Table>
@@ -98,6 +101,7 @@ export function Review({ state }: ReviewProps) {
variant="link"
className="text-black dark:text-white"
onClick={() => wizard('payment')}
tabIndex={-1}
>
Voltar
</Button>