feat(payment): add custom logo for PIX payment method
This commit is contained in:
@@ -671,6 +671,9 @@
|
|||||||
},
|
},
|
||||||
"Loja não informou métodos presenciais." : {
|
"Loja não informou métodos presenciais." : {
|
||||||
|
|
||||||
|
},
|
||||||
|
"Mais rápido e seguro" : {
|
||||||
|
|
||||||
},
|
},
|
||||||
"MÉTODO DE PAGAMENTO" : {
|
"MÉTODO DE PAGAMENTO" : {
|
||||||
"comment" : "A label displayed above the payment methods section in the checkout view.",
|
"comment" : "A label displayed above the payment methods section in the checkout view.",
|
||||||
@@ -701,6 +704,9 @@
|
|||||||
},
|
},
|
||||||
"Motivo do cancelamento" : {
|
"Motivo do cancelamento" : {
|
||||||
|
|
||||||
|
},
|
||||||
|
"Na entrega/retirada com a loja" : {
|
||||||
|
|
||||||
},
|
},
|
||||||
"Name" : {
|
"Name" : {
|
||||||
"comment" : "Placeholder title for the Name field in a form",
|
"comment" : "Placeholder title for the Name field in a form",
|
||||||
@@ -830,6 +836,12 @@
|
|||||||
"Pagamento via PIX" : {
|
"Pagamento via PIX" : {
|
||||||
"comment" : "The navigation title for the PaymentPixView.",
|
"comment" : "The navigation title for the PaymentPixView.",
|
||||||
"isCommentAutoGenerated" : true
|
"isCommentAutoGenerated" : true
|
||||||
|
},
|
||||||
|
"Pagar Na Maquininha" : {
|
||||||
|
|
||||||
|
},
|
||||||
|
"Pagar Pelo App" : {
|
||||||
|
|
||||||
},
|
},
|
||||||
"Pedido #%@" : {
|
"Pedido #%@" : {
|
||||||
|
|
||||||
|
|||||||
BIN
pedi-foods/Sources/PediFoods/Resources/icon_pix.png
Normal file
BIN
pedi-foods/Sources/PediFoods/Resources/icon_pix.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 835 B |
@@ -382,9 +382,18 @@ struct CheckoutView: View {
|
|||||||
.fill(AppColors.backgroundLight)
|
.fill(AppColors.backgroundLight)
|
||||||
.frame(width: 54, height: 54)
|
.frame(width: 54, height: 54)
|
||||||
.overlay(
|
.overlay(
|
||||||
|
Group {
|
||||||
|
if method == .pix {
|
||||||
|
Image("icon_pix")
|
||||||
|
.resizable()
|
||||||
|
.scaledToFit()
|
||||||
|
.frame(width: 24, height: 24)
|
||||||
|
} else {
|
||||||
Image(systemName: method.iconName)
|
Image(systemName: method.iconName)
|
||||||
.font(.system(size: 20, weight: .semibold))
|
.font(.system(size: 20, weight: .semibold))
|
||||||
.foregroundStyle(method == .pix ? Color.green : AppColors.textPrimary)
|
.foregroundStyle(AppColors.textPrimary)
|
||||||
|
}
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
VStack(alignment: .leading, spacing: 3) {
|
VStack(alignment: .leading, spacing: 3) {
|
||||||
|
|||||||
Reference in New Issue
Block a user