Skip to content

Commit

Permalink
enable ActionSurveillance item for timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
aleckvincent committed Mar 25, 2024
1 parent 790a11a commit 1b42940
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'

const ActionSurveillance: React.FC = () => {
// Implementation for ActionSurveillance
return null
return <div>Hello Env Surveillance</div>
}

export default ActionSurveillance
4 changes: 4 additions & 0 deletions frontend/src/pam/mission/timeline/item/timeline-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import ActionFishControl from "./timeline-item-control-fish.tsx";
import ActionNavControl from "./timeline-item-control-nav.tsx";
import ActionStatus from "./timeline-item-status.tsx";
import ActionNote from "./timeline-item-note.tsx";
import ActionSurveillance from './timeline-item-surveillance.tsx'

export interface MissionTimelineItemProps {
action: Action
Expand Down Expand Up @@ -45,6 +46,9 @@ const getActionComponent = (action: Action) => {
if (action.type === ActionTypeEnum.CONTROL) {
return ActionEnvControl
}
if (action.type === ActionTypeEnum.SURVEILLANCE) {
return ActionSurveillance
}
} else if (action.source === MissionSourceEnum.MONITORFISH) {
if (action.type === ActionTypeEnum.CONTROL) {
return ActionFishControl
Expand Down

0 comments on commit 1b42940

Please sign in to comment.