Skip to content

Commit 8f9f36c

Browse files
committed
feat: add ban logo to ban alert
1 parent 66011a7 commit 8f9f36c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

providers/auth-provider.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
} from "@/components/ui/alert-dialog";
1515
import { format } from 'date-fns';
1616
import { useTranslations } from 'next-intl';
17+
import { Ban } from 'lucide-react';
1718

1819
interface AuthState {
1920
token: string | null;
@@ -119,7 +120,8 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ children
119120
<AlertDialog open={!!banInfo}>
120121
<AlertDialogContent className="bg-destructive text-destructive-foreground border-destructive-foreground/20">
121122
<AlertDialogHeader>
122-
<AlertDialogTitle className="text-2xl font-bold">
123+
<AlertDialogTitle className="flex items-center gap-3 text-2xl font-bold">
124+
<Ban className="w-8 h-8 text-destructive-foreground" />
123125
{t('title')}
124126
</AlertDialogTitle>
125127
<AlertDialogDescription asChild>
@@ -130,7 +132,9 @@ export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ children
130132
</div>
131133
<div>
132134
<p className="font-semibold">{t('untilLabel')}</p>
133-
<p className="font-normal font-mono">{format(new Date(banInfo.until), "yyyy-MM-dd HH:mm:ss")}</p>
135+
<p className="font-normal font-mono">
136+
{format(new Date(banInfo.until), "yyyy-MM-dd HH:mm:ss")}
137+
</p>
134138
</div>
135139
</div>
136140
</AlertDialogDescription>

0 commit comments

Comments
 (0)