refactor: use global Incident type instead of local interface
This commit is contained in:
1 parent
0f51d68ff0
commit
37dd9fad26
1 file changed
+1
-8
@@ -11,14 +11,7 @@ import { useTheme } from "@mui/material";
|
|||||||
import { SPACING } from "@/Utils/Theme/constants";
|
import { SPACING } from "@/Utils/Theme/constants";
|
||||||
import { formatDateWithTz } from "@/Utils/TimeUtils";
|
import { formatDateWithTz } from "@/Utils/TimeUtils";
|
||||||
|
|
||||||
interface Incident {
|
import type { Incident } from "@/Types/Incident";
|
||||||
id: string;
|
|
||||||
message: string | null;
|
|
||||||
startTime: string;
|
|
||||||
endTime: string | null;
|
|
||||||
statusCode: number | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface IncidentModalProps {
|
interface IncidentModalProps {
|
||||||
url: string;
|
url: string;
|
||||||
monitorId: string | null;
|
monitorId: string | null;
|
||||||
|
|||||||
Reference in new issue
Block a user