Skip to content

Commit

Permalink
[TM-1425] dev monitoring indicators (#730)
Browse files Browse the repository at this point in the history
* changes

* changes

* [TM-1425] improve code to monitored data

* [TM-1425] update accesor key to fields en add redirect polygon functionality

* [TM-1468] add Target Land Use graph

* [TM-1425] improve code

* [TM-1467] add graph for restoration strategies in monitored section

* [TM-1425] edit style  dropdown  polygons

* [TM-1531] fix width in tables monitored

* [TM-1425] add handle export indicator functionality

* fix

---------

Co-authored-by: cesarLima1 <[email protected]>
Co-authored-by: Dotty <[email protected]>
  • Loading branch information
3 people authored Dec 11, 2024
1 parent ac65048 commit ecd3ec4
Show file tree
Hide file tree
Showing 18 changed files with 1,493 additions and 777 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
import { FC } from "react";
import { TabbedShowLayout, TabProps } from "react-admin";

import { EntityName } from "@/types/common";

import DataCard from "./components/DataCard";
import HeaderMonitoredTab from "./components/HeaderMonitoredTab";

interface IProps extends Omit<TabProps, "label" | "children"> {
label?: string;
type: EntityName;
}

const MonitoredTab: FC<IProps> = ({ label, ...rest }) => {
const MonitoredTab: FC<IProps> = ({ label, type, ...rest }) => {
return (
<TabbedShowLayout.Tab label={label ?? "Monitored Data"} {...rest}>
<div className="flex w-full flex-col gap-4 p-3">
<HeaderMonitoredTab />
<DataCard />
<HeaderMonitoredTab type={type} />
<DataCard type={type} />
</div>
</TabbedShowLayout.Tab>
);
Expand Down
Loading

0 comments on commit ecd3ec4

Please sign in to comment.