Skip to content

Commit

Permalink
fix npm build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkRoss-Eviden committed Jan 22, 2025
1 parent ea01b99 commit 7217788
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions new/src/pages/home.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
import React, { Component } from "react";
import { Component } from "react";
import { TextContent, Toggle, RadioGroup } from "@cloudscape-design/components";
import BaseAppLayout from "../components/base-app-layout";

class HomePage extends Component {
state = {
interface HomeState {
showCameraFeed: boolean;
cameraFeedType: string;
sensorStatus: {
camera_status: string;
stereo_status: string;
lidar_status: string;
};
}

class HomePage extends Component<{}, HomeState> {
state: HomeState = {
showCameraFeed: false,
cameraFeedType: "mono",
sensorStatus: {
camera_status: "unknown",
lidar_status: "unknown",
stereo_status: "unknown",
camera_status: "not_connected",
stereo_status: "not_connected",
lidar_status: "not_connected",
},
};

Expand All @@ -35,7 +45,7 @@ class HomePage extends Component {
}));
};

handleCameraFeedTypeChange = ({ detail }) => {
handleCameraFeedTypeChange = ({ detail }: { detail: any }) => {
this.setState({ cameraFeedType: detail.value });
};

Expand Down

0 comments on commit 7217788

Please sign in to comment.