Skip to content

Commit

Permalink
Enable card view
Browse files Browse the repository at this point in the history
  • Loading branch information
nuke-ellington committed Oct 2, 2024
1 parent 0883d89 commit 2e9bc3f
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { IxBlind, IxIcon, IxButton, IxInputGroup } from "@siemens/ix-react";
import { Incident } from "./incident";
import IncidentList from "./incident-list";
import { useTranslation } from "react-i18next";
import IncidentCards from "./incident-cards";

function Incidents() {
const { t } = useTranslation();
Expand All @@ -24,7 +25,7 @@ function Incidents() {
incidentName: "Update available",
icon: "alarm-bell",
infoText: "v2.3 -> v2.5",
deviceName: "Device 1",
deviceName: "Device A",
date: "2022-05-01",
color: "alarm",
},
Expand All @@ -33,7 +34,7 @@ function Incidents() {
incidentName: "Update available",
icon: "alarm-bell",
infoText: "v2.3 -> v2.5",
deviceName: "Device 2",
deviceName: "Device B",
date: "2022-05-01",
color: "alarm",
},
Expand Down Expand Up @@ -72,7 +73,11 @@ function Incidents() {
</IxButton>
</div>
</div>
{showList && <IncidentList incidents={incidents} search={search}></IncidentList>}
{showList ? (
<IncidentList incidents={incidents} search={search}></IncidentList>
) : (
<IncidentCards incidents={incidents} search={search}></IncidentCards>
)}
</IxBlind>
);
}
Expand Down

0 comments on commit 2e9bc3f

Please sign in to comment.