fix(rcart): force Transak dark mode with colorMode param
Text inputs were rendering in light mode making text invisible against the dark background. Added colorMode: 'DARK' to both Transak widget endpoints. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
15990cc147
commit
f9dc06394c
|
|
@ -1781,6 +1781,7 @@ routes.post("/api/payments/:id/transak-session", async (c) => {
|
||||||
partnerOrderId: `pay-${paymentId}`,
|
partnerOrderId: `pay-${paymentId}`,
|
||||||
email,
|
email,
|
||||||
themeColor: '6366f1',
|
themeColor: '6366f1',
|
||||||
|
colorMode: 'DARK',
|
||||||
hideMenu: 'true',
|
hideMenu: 'true',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -1858,6 +1859,7 @@ routes.post("/api/payments/:id/card-session", async (c) => {
|
||||||
partnerOrderId: `pay-${paymentId}`,
|
partnerOrderId: `pay-${paymentId}`,
|
||||||
email,
|
email,
|
||||||
themeColor: '6366f1',
|
themeColor: '6366f1',
|
||||||
|
colorMode: 'DARK',
|
||||||
hideMenu: 'true',
|
hideMenu: 'true',
|
||||||
};
|
};
|
||||||
// Derive fiat amount: use explicit fiatAmount, or infer from crypto amount for stablecoins
|
// Derive fiat amount: use explicit fiatAmount, or infer from crypto amount for stablecoins
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue