mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: update variable declaration and improve no items message in ScheduledMaintenanceTable component
This commit is contained in:
@@ -79,7 +79,7 @@ export default class Recurring extends DatabaseProperty {
|
||||
const intervalType: EventInterval = rotation.intervalType;
|
||||
const intervalCount: PositiveNumber = rotation.intervalCount;
|
||||
|
||||
let diff: number = dateNow.getTime() - nextDate.getTime();
|
||||
const diff: number = dateNow.getTime() - nextDate.getTime();
|
||||
let intervalMillis: number;
|
||||
|
||||
switch (intervalType) {
|
||||
|
||||
@@ -131,7 +131,7 @@ const ScheduledMaintenancesTable: FunctionComponent<ComponentProps> = (
|
||||
buttons: cardbuttons,
|
||||
}}
|
||||
noItemsMessage={
|
||||
props.noItemsMessage || "No scheduled Maintenance Event found."
|
||||
props.noItemsMessage || "No Scheduled Maintenance Event found."
|
||||
}
|
||||
showViewIdButton={true}
|
||||
viewButtonText="View Event"
|
||||
|
||||
Reference in New Issue
Block a user