mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-14 12:21:10 -05:00
🐛 fix(dashboard): Display subscription creation date in user dashboard
This commit is contained in:
parent
8e16ef17ed
commit
d0e6df044e
@ -32,7 +32,7 @@ import { Card, CardContent, CardHeader, CardTitle } from '@workspace/ui/componen
|
|||||||
import { Separator } from '@workspace/ui/components/separator';
|
import { Separator } from '@workspace/ui/components/separator';
|
||||||
import { Tabs, TabsList, TabsTrigger } from '@workspace/ui/components/tabs';
|
import { Tabs, TabsList, TabsTrigger } from '@workspace/ui/components/tabs';
|
||||||
import { Icon } from '@workspace/ui/custom-components/icon';
|
import { Icon } from '@workspace/ui/custom-components/icon';
|
||||||
import { isBrowser } from '@workspace/ui/utils';
|
import { formatDate, isBrowser } from '@workspace/ui/utils';
|
||||||
import { differenceInDays } from 'date-fns';
|
import { differenceInDays } from 'date-fns';
|
||||||
import { useTranslations } from 'next-intl';
|
import { useTranslations } from 'next-intl';
|
||||||
import Image from 'next/image';
|
import Image from 'next/image';
|
||||||
@ -142,7 +142,12 @@ export default function Content() {
|
|||||||
{userSubscribe.map((item) => (
|
{userSubscribe.map((item) => (
|
||||||
<Card key={item.id}>
|
<Card key={item.id}>
|
||||||
<CardHeader className='flex flex-row flex-wrap items-center justify-between gap-2 space-y-0'>
|
<CardHeader className='flex flex-row flex-wrap items-center justify-between gap-2 space-y-0'>
|
||||||
<CardTitle className='font-medium'>{item.subscribe.name}</CardTitle>
|
<CardTitle className='font-medium'>
|
||||||
|
{item.subscribe.name}
|
||||||
|
<p className='text-foreground/50 mt-1 text-sm'>
|
||||||
|
{formatDate(item.subscribe.created_at)}
|
||||||
|
</p>
|
||||||
|
</CardTitle>
|
||||||
<div className='flex flex-wrap gap-2'>
|
<div className='flex flex-wrap gap-2'>
|
||||||
<AlertDialog>
|
<AlertDialog>
|
||||||
<AlertDialogTrigger asChild>
|
<AlertDialogTrigger asChild>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user