This commit is contained in:
Kenneth Jannette
2024-02-01 23:33:19 -06:00
parent 7423dcbcb4
commit 5dcfaa97f0

View File

@@ -2,7 +2,7 @@ import { useState } from "react";
import Button from "../../pageElements/Button"; import Button from "../../pageElements/Button";
import Modal from "react-bootstrap/Modal"; import Modal from "react-bootstrap/Modal";
import TextInput from "../../pageElements/TextInput"; import TextInput from "../../pageElements/TextInput";
import { ExclamationTriangle } from "react-bootstrap-icons";
import { db } from "../../firebase"; import { db } from "../../firebase";
const ConfirmModal = ({ const ConfirmModal = ({
@@ -27,7 +27,20 @@ const ConfirmModal = ({
{isReport ? ( {isReport ? (
<Modal.Title>Report an issue</Modal.Title> <Modal.Title>Report an issue</Modal.Title>
) : ( ) : (
<Modal.Title>{title}</Modal.Title> <Modal.Title>
{titleText ? (
<ExclamationTriangle
style={{
color: "red",
marginRight: "8px",
marginBottom: "7px",
}}
/>
) : (
<></>
)}
{title}
</Modal.Title>
)} )}
</Modal.Header> </Modal.Header>
<Modal.Body> <Modal.Body>