diff --git a/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx b/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx index 576dfb0b8..d9428a34b 100644 --- a/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx +++ b/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx @@ -1,15 +1,23 @@ -import { XCircleIcon, XMarkIcon, InformationCircleIcon, CheckCircleIcon } from "@heroicons/react/24/outline"; +import { + XCircleIcon, + XMarkIcon, + InformationCircleIcon, + CheckCircleIcon, +} from "@heroicons/react/24/outline"; import { Link } from "react-router-dom"; import { Transition } from "@headlessui/react"; import { useState } from "react"; import { SingleAlertComponentType } from "../../../../types/alerts"; -export default function SingleAlert({ dropItem, removeAlert}:SingleAlertComponentType) { - const [show, setShow] = useState(true); - const type = dropItem.type; +export default function SingleAlert({ + dropItem, + removeAlert, +}: SingleAlertComponentType) { + const [show, setShow] = useState(true); + const type = dropItem.type; - return ( - - {type === "error"? -
-
-