updated ui and added NPED back
This commit is contained in:
@@ -12,7 +12,7 @@ type AlertItemProps = {
|
||||
const AlertItem = ({ item }: AlertItemProps) => {
|
||||
const [isModalOpen, setIsModalOpen] = useState(false);
|
||||
const motionAway = (item?.motion ?? "").toUpperCase() === "AWAY";
|
||||
// const isNPEDHit = item?.metadata?.npedJSON?.status_code === 404;
|
||||
const isNPEDHit = item?.metadata?.npedJSON?.status_code === 404;
|
||||
const isHotListHit = item?.metadata?.hotlistMatches?.Hotlist0 === true;
|
||||
|
||||
const handleClick = () => {
|
||||
@@ -36,6 +36,13 @@ const AlertItem = ({ item }: AlertItemProps) => {
|
||||
className="h-20 object-contain rounded-md"
|
||||
/>
|
||||
)}
|
||||
{isNPEDHit && (
|
||||
<img
|
||||
src={HotListImg}
|
||||
alt="hotlistHit"
|
||||
className="h-20 object-contain rounded-md"
|
||||
/>
|
||||
)}
|
||||
<div className="flex flex-col">
|
||||
<small>MAKE: {item.make}</small>
|
||||
<small>MODEL: {item.model}</small>
|
||||
|
||||
Reference in New Issue
Block a user