Paypal tab is now only displayed to admin or devs
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user