Skip to content

Commit

Permalink
fix(types): mv 'WorkOrderWithUpcomingEvent' type to this comp
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed May 12, 2023
1 parent 6bc7ffb commit 8271b49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/Dashboard/WorkOrderUpcomingEventsWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import ConstructionIcon from "@mui/icons-material/Construction";
import EventIcon from "@mui/icons-material/Event";
import ScheduleIcon from "@mui/icons-material/Schedule";
import { EmptyListFallback } from "@components/HelpInfo";
import { useDashboardDataContext, type WorkOrderWithUpcomingEvent } from "./DashboardDataContext";
import { useDashboardDataContext, type UpcomingEvent } from "./DashboardDataContext";
import { SmallWidgetLayout } from "./SmallWidgetLayout";
import type { WorkOrder } from "@graphql/types";

export const WorkOrderUpcomingEventsWidget = () => {
const nav = useNavigate();
Expand Down Expand Up @@ -143,3 +144,5 @@ const StyledDiv = styled("div", {
},
},
}));

type WorkOrderWithUpcomingEvent = WorkOrder & UpcomingEvent;

0 comments on commit 8271b49

Please sign in to comment.