refactor: Clean up whitespace in various components for improved readability

This commit is contained in:
Nawaz Dhandala
2025-07-30 12:08:53 +01:00
parent 463a20f342
commit 42e82b6fb7
5 changed files with 8 additions and 11 deletions

View File

@@ -27,5 +27,5 @@ export default interface ProbeMonitorResponse {
customCodeMonitorResponse?: CustomCodeMonitorResponse | undefined;
monitoredAt: Date;
isTimeout?: boolean | undefined;
ingestedAt?: Date | undefined;
ingestedAt?: Date | undefined;
}

View File

@@ -62,7 +62,6 @@ const Page: FunctionComponent<ComponentProps> = (
)}
</div>
)}
{props.sideMenu && (
<main className="mx-auto max-w-full pb-10">

View File

@@ -89,7 +89,7 @@ const Pagination: FunctionComponent<ComponentProps> = (
)}
</p>
</div>
{/* Desktop layout: All controls together on right */}
<div className="hidden md:flex">
<nav className="inline-flex -space-x-px rounded-md shadow-sm">
@@ -181,7 +181,7 @@ const Pagination: FunctionComponent<ComponentProps> = (
}}
/>
</div>
<div className="md:hidden">
<nav className="inline-flex -space-x-px rounded-md shadow-sm">
<ul>
@@ -243,7 +243,6 @@ const Pagination: FunctionComponent<ComponentProps> = (
<span>Next</span>
</li>
</ul>
</nav>
</div>

View File

@@ -255,7 +255,7 @@ router.post(
);
}
// this is when the resource was ingested.
// this is when the resource was ingested.
probeResponse.ingestedAt = OneUptimeDate.getCurrentDate();
MonitorResourceUtil.monitorResource(probeResponse).catch((err: Error) => {

View File

@@ -158,15 +158,14 @@ const DashboardMasterPage: FunctionComponent<ComponentProps> = (
useAsyncEffect(async () => {
try {
setIsLoading(true);
const id: ObjectID = await getId();
setStatusPageId(id);
StatusPageUtil.setStatusPageId(id);
const response: HTTPResponse<JSONObject> = await API.post<JSONObject>(
URL.fromString(STATUS_PAGE_API_URL.toString()).addRoute(
`/master-page/${id.toString()}`,