generated from muhtadeetaron/nextjs-template
feat(ui): add icons to destructible alert
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
import { useRouter, useSearchParams } from "next/navigation";
|
||||
import { Suspense, useEffect, useState } from "react";
|
||||
import { ArrowLeft, HelpCircle, Clock, XCircle } from "lucide-react";
|
||||
import { ArrowLeft, HelpCircle, Clock, XCircle, OctagonX } from "lucide-react";
|
||||
import DestructibleAlert from "@/components/DestructibleAlert";
|
||||
import BackgroundWrapper from "@/components/BackgroundWrapper";
|
||||
import { API_URL, getToken } from "@/lib/auth";
|
||||
@ -88,7 +88,12 @@ function PretestPageContent() {
|
||||
>
|
||||
<ArrowLeft size={30} color="black" />
|
||||
</button>
|
||||
<DestructibleAlert text={error} extraStyles="" />
|
||||
<div className="">
|
||||
<DestructibleAlert
|
||||
text={error}
|
||||
icon={<OctagonX size={150} color="red" />}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</BackgroundWrapper>
|
||||
|
||||
Reference in New Issue
Block a user