diff --git a/app/(tabs)/bookmark/page.tsx b/app/(tabs)/bookmark/page.tsx index 64d64ef..f5dd670 100644 --- a/app/(tabs)/bookmark/page.tsx +++ b/app/(tabs)/bookmark/page.tsx @@ -2,8 +2,16 @@ import React, { useState, useEffect } from "react"; import BackgroundWrapper from "@/components/BackgroundWrapper"; -import { Bookmark, BookmarkCheck, ListFilter, MoveLeft } from "lucide-react"; +import { + Bookmark, + BookmarkCheck, + Check, + ListFilter, + MoveLeft, + OctagonX, +} from "lucide-react"; import { useRouter } from "next/navigation"; +import DestructibleAlert from "@/components/DestructibleAlert"; interface Question { id: number; diff --git a/app/exam/pretest/page.tsx b/app/exam/pretest/page.tsx index 1a6b7b6..3c34489 100644 --- a/app/exam/pretest/page.tsx +++ b/app/exam/pretest/page.tsx @@ -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() { > - +
+ } + /> +
diff --git a/components/DestructibleAlert.tsx b/components/DestructibleAlert.tsx index 20eff0d..07af9cc 100644 --- a/components/DestructibleAlert.tsx +++ b/components/DestructibleAlert.tsx @@ -1,38 +1,18 @@ -import React from "react"; +import React, { JSX } from "react"; interface DestructibleAlertProps { text: string; - extraStyles?: string; + icon: JSX.Element; } -const DestructibleAlert = ({ +const DestructibleAlert: React.FC = ({ text, - extraStyles = "", -}: DestructibleAlertProps) => { + icon, +}) => { return ( -
-

- {text} -

+
+
{icon}
+

{text}

); };