add link to bank slip
This commit is contained in:
@@ -180,8 +180,6 @@ export default function Route({ loaderData: { order } }: Route.ComponentProps) {
|
||||
reset()
|
||||
}, [])
|
||||
|
||||
console.log(order)
|
||||
|
||||
return (
|
||||
<div className="space-y-2.5">
|
||||
<Breadcrumb>
|
||||
@@ -342,14 +340,29 @@ type PaymentMethodProps = {
|
||||
|
||||
type BankSlipPaymentMethodProps = PaymentMethodProps & {}
|
||||
|
||||
function BankSlipPaymentMethod({ status }: BankSlipPaymentMethodProps) {
|
||||
function BankSlipPaymentMethod({
|
||||
status,
|
||||
invoice
|
||||
}: BankSlipPaymentMethodProps) {
|
||||
return (
|
||||
<ul className="flex gap-x-1.5">
|
||||
<li>Boleto bancário</li>
|
||||
<li>
|
||||
<Status status={status} />
|
||||
</li>
|
||||
</ul>
|
||||
<div className="space-y-2">
|
||||
<ul className="flex gap-x-1.5">
|
||||
<li>Boleto bancário</li>
|
||||
<li>
|
||||
<Status status={status} />
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{invoice?.bank_slip ? (
|
||||
<>
|
||||
<Button variant="link" asChild>
|
||||
<a href={invoice.bank_slip.bank_slip_pdf_url} target="_blank">
|
||||
Abrir o boleto bancário
|
||||
</a>
|
||||
</Button>
|
||||
</>
|
||||
) : null}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user