mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
feat: add Etoplatezhi payment provider support
- Add etoplatezhi to METHOD_LABELS for stats charts - Add PaymentMethodIcon case with green gradient SVG - Add payments_etoplatezhi to admin settings tree - Add i18n keys in all 4 locales (en, ru, zh, fa)
This commit is contained in:
@@ -295,6 +295,26 @@ export default function PaymentMethodIcon({
|
||||
);
|
||||
}
|
||||
|
||||
case 'etoplatezhi': {
|
||||
const etoplatezhiGradId = `${uid}-etoplatezhi`;
|
||||
return (
|
||||
<svg className={className} viewBox="0 0 40 40">
|
||||
<defs>
|
||||
<linearGradient id={etoplatezhiGradId} x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0%" stopColor="#10b981" />
|
||||
<stop offset="100%" stopColor="#059669" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<circle cx="20" cy="20" r="20" fill={`url(#${etoplatezhiGradId})`} />
|
||||
<g fill="#fff" fontFamily="Arial,sans-serif" fontWeight="700">
|
||||
<text x="20" y="26" textAnchor="middle" fontSize="14">
|
||||
EP
|
||||
</text>
|
||||
</g>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
case 'apple_iap':
|
||||
return (
|
||||
<svg className={className} viewBox="0 0 40 40">
|
||||
|
||||
@@ -55,6 +55,7 @@ export const SETTINGS_TREE: SettingsTreeConfig = {
|
||||
{ id: 'payments_paypear', categories: ['PAYPEAR'] },
|
||||
{ id: 'payments_rollypay', categories: ['ROLLYPAY'] },
|
||||
{ id: 'payments_aurapay', categories: ['AURAPAY'] },
|
||||
{ id: 'payments_etoplatezhi', categories: ['ETOPLATEZHI'] },
|
||||
{ id: 'payments_apple_iap', categories: ['APPLE_IAP'] },
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user