Paypal tab is now only displayed to admin or devs

This commit is contained in:
Joao Ramos
2024-02-29 21:33:47 +00:00
parent ecd66d61f2
commit 02d2d07f6c

View File

@@ -1151,7 +1151,7 @@ export default function PaymentRecord() {
> >
Payments Payments
</Tab> </Tab>
<Tab {['admin','developer'].includes(user.type) && (<Tab
className={({ selected }) => className={({ selected }) =>
clsx( clsx(
"w-full rounded-lg py-2.5 text-sm font-medium leading-5 text-mti-purple-light", "w-full rounded-lg py-2.5 text-sm font-medium leading-5 text-mti-purple-light",
@@ -1165,6 +1165,7 @@ export default function PaymentRecord() {
> >
Paypal Paypal
</Tab> </Tab>
)}
</Tab.List> </Tab.List>
<Tab.Panels> <Tab.Panels>
<Tab.Panel className="overflow-y-scroll max-h-[600px] rounded-xl scrollbar-hide gap-8 flex flex-col gap-8"> <Tab.Panel className="overflow-y-scroll max-h-[600px] rounded-xl scrollbar-hide gap-8 flex flex-col gap-8">