Skip to content

Commit

Permalink
Add modal to passenger details modal
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblurie29 committed Feb 16, 2024
1 parent 5b8c871 commit 21b79f1
Showing 1 changed file with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import styles from "./FlightDetailsModal.module.css";
import { faCircleXmark, faPlaneUp } from "@fortawesome/free-solid-svg-icons";
import Modal from "../../../../components/Modal/Modal";
import { faPlaneUp } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import type { FlightDetailsModalProps } from "./FlightDetailsModal.definitions";

Expand All @@ -26,16 +27,11 @@ const FlightDetailsModal = ({ onClose, flight }: FlightDetailsModalProps) => {
}

return (
<div className={styles.modalBackdrop}>
<div className={styles.modal}>
<FontAwesomeIcon
icon={faCircleXmark}
className={styles.exitIcon}
onClick={onClose}
id="closeIcon"
/>
<div className={styles.modalContent}>
<div className={styles.header}>Flight Information</div>
<Modal
action={onClose}
header="Flight Information"
body={
<>
<div className={styles.flightInfo}>
<div className={styles.from}>
<FontAwesomeIcon
Expand Down Expand Up @@ -68,9 +64,9 @@ const FlightDetailsModal = ({ onClose, flight }: FlightDetailsModalProps) => {
Check Flight Status
</a>
</div>
</div>
</div>
</div>
</>
}
/>
);
};

Expand Down

0 comments on commit 21b79f1

Please sign in to comment.