kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/715/head
rodzic
a107e4ea63
commit
de7d18c447
|
@ -51,6 +51,7 @@ export function AppConsumersList() {
|
||||||
})
|
})
|
||||||
|
|
||||||
const consumers = data ? data.pages.flatMap((p) => p.consumers) : []
|
const consumers = data ? data.pages.flatMap((p) => p.consumers) : []
|
||||||
|
const numConsumers = consumers.length
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -68,7 +69,12 @@ export function AppConsumersList() {
|
||||||
started.
|
started.
|
||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
<div className='grid grid-cols grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3'>
|
<div
|
||||||
|
className={`grid grid-cols grid-cols-1 gap-4 sm:grid-cols-${Math.min(
|
||||||
|
2,
|
||||||
|
numConsumers
|
||||||
|
)} xl:grid-cols-${Math.min(3, numConsumers)}`}
|
||||||
|
>
|
||||||
{consumers.map((consumer) => (
|
{consumers.map((consumer) => (
|
||||||
<Link
|
<Link
|
||||||
key={consumer.id}
|
key={consumer.id}
|
||||||
|
|
|
@ -22,7 +22,7 @@ export function ProjectPricingPlans({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cn('mt-8 flex flex-col gap-8', className)}>
|
<div className={cn('mt-8 flex flex-col gap-8', className)}>
|
||||||
<h2 className='text-center text-balance leading-snug md:leading-none text-2xl font-extrabold'>
|
<h2 className='text-center text-balance leading-snug md:leading-none text-2xl font-bold'>
|
||||||
Pricing Plans
|
Pricing Plans
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ export function ProjectPricingPlans({
|
||||||
key={plan.slug}
|
key={plan.slug}
|
||||||
className='flex flex-col gap-4 p-4 border rounded-lg shadow-sm'
|
className='flex flex-col gap-4 p-4 border rounded-lg shadow-sm'
|
||||||
>
|
>
|
||||||
<h3 className='text-center text-balance leading-snug md:leading-none text-xl font-bold'>
|
<h3 className='text-center text-balance leading-snug md:leading-none text-xl font-semibold'>
|
||||||
{plan.name}
|
{plan.name}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue