mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-07 15:05:02 -05:00
fix: crash
This commit is contained in:
commit
9b6c1f07f9
@ -48,24 +48,26 @@ export default function LayoutPart({
|
|||||||
</BreadcrumbList>
|
</BreadcrumbList>
|
||||||
</Breadcrumb>
|
</Breadcrumb>
|
||||||
</div>
|
</div>
|
||||||
{!loading && incidents !== null && (
|
{!loading &&
|
||||||
<div className="justify-self-center items-center text-center pb-2 pt-2 rounded border my-1 px-2 bg-red-500 text-white">
|
incidents !== null &&
|
||||||
<strong className="text-sm">
|
(incidents as Array<any>).length > 0 && (
|
||||||
{
|
<div className="justify-self-center items-center text-center pb-2 pt-2 rounded border my-1 px-2 bg-red-500 text-white">
|
||||||
(
|
<strong className="text-sm">
|
||||||
incidents[0] as {
|
{
|
||||||
attributes: { title: string };
|
(
|
||||||
}
|
incidents[0] as {
|
||||||
).attributes.title
|
attributes: { title: string };
|
||||||
}{" "}
|
}
|
||||||
</strong>{" "}
|
).attributes.title
|
||||||
<span className="text-sm">- MHSF may be down</span>
|
}{" "}
|
||||||
<br />
|
</strong>{" "}
|
||||||
<Link href={"https://" + statusURL} className="text-sm">
|
<span className="text-sm">- MHSF may be down</span>
|
||||||
View MHSF Status
|
<br />
|
||||||
</Link>
|
<Link href={"https://" + statusURL} className="text-sm">
|
||||||
</div>
|
View MHSF Status
|
||||||
)}
|
</Link>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
<div className="justify-self-end">
|
<div className="justify-self-end">
|
||||||
<TopBar inter={inter.className} />
|
<TopBar inter={inter.className} />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user