mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
fix: remove payment method icons from admin pages
This commit is contained in:
@@ -6,8 +6,6 @@ import { adminPaymentMethodsApi } from '../api/adminPaymentMethods';
|
|||||||
import type { PromoGroupSimple } from '../types';
|
import type { PromoGroupSimple } from '../types';
|
||||||
import { usePlatform } from '../platform/hooks/usePlatform';
|
import { usePlatform } from '../platform/hooks/usePlatform';
|
||||||
import { createNumberInputHandler, toNumber } from '../utils/inputHelpers';
|
import { createNumberInputHandler, toNumber } from '../utils/inputHelpers';
|
||||||
import PaymentMethodIcon from '@/components/PaymentMethodIcon';
|
|
||||||
|
|
||||||
const BackIcon = () => (
|
const BackIcon = () => (
|
||||||
<svg
|
<svg
|
||||||
className="h-5 w-5 text-dark-400"
|
className="h-5 w-5 text-dark-400"
|
||||||
@@ -195,9 +193,6 @@ export default function AdminPaymentMethodEdit() {
|
|||||||
<BackIcon />
|
<BackIcon />
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
<div className="flex h-10 w-10 items-center justify-center">
|
|
||||||
<PaymentMethodIcon method={config.method_id} className="h-10 w-10" />
|
|
||||||
</div>
|
|
||||||
<div>
|
<div>
|
||||||
<h1 className="text-2xl font-bold text-dark-50">{displayName}</h1>
|
<h1 className="text-2xl font-bold text-dark-50">{displayName}</h1>
|
||||||
<p className="text-sm text-dark-500">
|
<p className="text-sm text-dark-500">
|
||||||
|
|||||||
@@ -23,8 +23,6 @@ import {
|
|||||||
import { CSS } from '@dnd-kit/utilities';
|
import { CSS } from '@dnd-kit/utilities';
|
||||||
import { adminPaymentMethodsApi } from '../api/adminPaymentMethods';
|
import { adminPaymentMethodsApi } from '../api/adminPaymentMethods';
|
||||||
import type { PaymentMethodConfig } from '../types';
|
import type { PaymentMethodConfig } from '../types';
|
||||||
import PaymentMethodIcon from '@/components/PaymentMethodIcon';
|
|
||||||
|
|
||||||
// ============ Icons ============
|
// ============ Icons ============
|
||||||
|
|
||||||
const BackIcon = () => (
|
const BackIcon = () => (
|
||||||
@@ -135,11 +133,6 @@ function SortablePaymentCard({ config, onClick }: SortableCardProps) {
|
|||||||
<GripIcon />
|
<GripIcon />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{/* Method icon */}
|
|
||||||
<div className="flex h-10 w-10 flex-shrink-0 items-center justify-center">
|
|
||||||
<PaymentMethodIcon method={config.method_id} className="h-10 w-10" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Content */}
|
{/* Content */}
|
||||||
<div className="min-w-0 flex-1 cursor-pointer" onClick={onClick}>
|
<div className="min-w-0 flex-1 cursor-pointer" onClick={onClick}>
|
||||||
<div className="flex flex-wrap items-center gap-2">
|
<div className="flex flex-wrap items-center gap-2">
|
||||||
@@ -320,9 +313,6 @@ export default function AdminPaymentMethods() {
|
|||||||
</DndContext>
|
</DndContext>
|
||||||
) : (
|
) : (
|
||||||
<div className="py-12 text-center">
|
<div className="py-12 text-center">
|
||||||
<div className="mx-auto mb-4 flex h-16 w-16 items-center justify-center">
|
|
||||||
<PaymentMethodIcon method="" className="h-12 w-12" />
|
|
||||||
</div>
|
|
||||||
<div className="text-dark-400">{t('admin.paymentMethods.noMethods')}</div>
|
<div className="text-dark-400">{t('admin.paymentMethods.noMethods')}</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user