fixed type errors
This commit is contained in:
@@ -6,16 +6,17 @@ import AlertItem from "./AlertItem";
|
||||
const HistoryList = () => {
|
||||
const { state } = useAlertHitContext();
|
||||
console.log(state);
|
||||
|
||||
return (
|
||||
<Card className="h-100">
|
||||
<CardHeader title="Alert History" />
|
||||
<div className="flex flex-col gap-1">
|
||||
{state?.alertList?.length >= 0 ? (
|
||||
{state?.alertList?.length > 0 ? (
|
||||
state?.alertList?.map((alertItem, index) => (
|
||||
<AlertItem key={index} item={alertItem} />
|
||||
))
|
||||
) : (
|
||||
<p>No Search results</p>
|
||||
<p>No Alert results</p>
|
||||
)}
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user