>
+ onClosePanel: () => void
}
const ScheduleAdherenceStatusIcon = () => (
@@ -92,7 +92,7 @@ const ScheduleAdherence = ({
)
}
-const Header = ({ vehicle, tabMode, setTabMode, closePanel }: Props) => {
+const Header = ({ vehicle, tabMode, onChangeTabMode, onClosePanel }: Props) => {
const [{ routeTabs, userSettings, previousView }, dispatch] =
useContext(StateDispatchContext)
const epochNowInSeconds = useCurrentTimeSeconds()
@@ -109,7 +109,7 @@ const Header = ({ vehicle, tabMode, setTabMode, closePanel }: Props) => {
dispatch(returnToPreviousView())}
/>
@@ -144,7 +144,7 @@ const Header = ({ vehicle, tabMode, setTabMode, closePanel }: Props) => {
{vehicleIsShuttle || (
-
+
)}
)
diff --git a/assets/src/components/propertiesPanel/vehiclePropertiesPanel.tsx b/assets/src/components/propertiesPanel/vehiclePropertiesPanel.tsx
index 6cf6d1a06a..38a6311d33 100644
--- a/assets/src/components/propertiesPanel/vehiclePropertiesPanel.tsx
+++ b/assets/src/components/propertiesPanel/vehiclePropertiesPanel.tsx
@@ -211,7 +211,7 @@ const VehiclePropertiesPanel = ({
{
+ onChangeTabMode={(newTabMode) => {
if (newTabMode !== tabMode) {
fullStoryEvent("Switched tab in Vehicle Properties Panel", {
tab_str: newTabMode,
@@ -219,7 +219,7 @@ const VehiclePropertiesPanel = ({
}
onChangeTabMode(newTabMode)
}}
- closePanel={onClosePanel}
+ onClosePanel={onClosePanel}
/>
{isVehicleInScheduledService(selectedVehicle) ? (
diff --git a/assets/tests/components/propertiesPanel/header.test.tsx b/assets/tests/components/propertiesPanel/header.test.tsx
index 374ea04fd7..81043b1110 100644
--- a/assets/tests/components/propertiesPanel/header.test.tsx
+++ b/assets/tests/components/propertiesPanel/header.test.tsx
@@ -90,8 +90,8 @@ describe("Header", () => {
)
.toJSON()
@@ -110,8 +110,8 @@ describe("Header", () => {
)
@@ -130,8 +130,8 @@ describe("Header", () => {
)
.toJSON()
@@ -149,8 +149,8 @@ describe("Header", () => {
)
.toJSON()
@@ -169,8 +169,8 @@ describe("Header", () => {
)
.toJSON()
@@ -189,8 +189,8 @@ describe("Header", () => {
)
.toJSON()
@@ -223,8 +223,8 @@ describe("Header", () => {
)
.toJSON()
@@ -237,8 +237,8 @@ describe("Header", () => {
)
expect(result.getByTestId("vehicle-triangle")).toHaveAttribute(
@@ -252,8 +252,8 @@ describe("Header", () => {
)
@@ -282,8 +282,8 @@ describe("Header", () => {
)
@@ -305,8 +305,8 @@ describe("Header", () => {
)
@@ -324,8 +324,8 @@ describe("Header", () => {
)