updated image loading
This commit is contained in:
@@ -1,29 +1,26 @@
|
||||
import FrontCameraOverviewCard from "../components/FrontCameraOverview/FrontCameraOverviewCard";
|
||||
import RearCameraOverviewCard from "../components/RearCameraOverview/RearCameraOverviewCard";
|
||||
import { useNavigate } from "react-router";
|
||||
import { useSwipeable } from "react-swipeable";
|
||||
|
||||
import SightingHistoryWidget from "../components/SightingsWidget/SightingWidget";
|
||||
import { SightingFeedProvider } from "../context/SightingFeedContext";
|
||||
|
||||
const Dashboard = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
const handlers = useSwipeable({
|
||||
onSwipedDown: () => navigate("/system-settings"),
|
||||
trackMouse: true,
|
||||
});
|
||||
|
||||
return (
|
||||
<div
|
||||
className="mx-auto grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-2 gap-2 px-2 sm:px-4 lg:px-0 w-full"
|
||||
{...handlers}
|
||||
>
|
||||
<SightingFeedProvider baseUrl={"http://100.82.205.44/SightingListFront"}>
|
||||
<div className="mx-auto grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-2 gap-2 px-2 sm:px-4 lg:px-0 w-full">
|
||||
<SightingFeedProvider
|
||||
url={
|
||||
"http://100.116.253.81/mergedHistory/sightingSummary?mostRecentRef="
|
||||
}
|
||||
side="Front"
|
||||
>
|
||||
<FrontCameraOverviewCard className="order-1" />
|
||||
<SightingHistoryWidget className="order-3" />
|
||||
</SightingFeedProvider>
|
||||
|
||||
<SightingFeedProvider baseUrl="http://100.82.205.44/SightingListRear">
|
||||
<SightingFeedProvider
|
||||
url="http://100.82.205.44/SightingListRear/sightingSummary?mostRecentRef="
|
||||
side="Rear"
|
||||
>
|
||||
<RearCameraOverviewCard className="order-2" />
|
||||
<SightingHistoryWidget className="order-4" />
|
||||
</SightingFeedProvider>
|
||||
|
||||
Reference in New Issue
Block a user