fixed button on map to go to fields page
This commit is contained in:
parent
fbfa413cc1
commit
347c86a285
1 changed files with 3 additions and 2 deletions
|
|
@ -27,6 +27,7 @@ import DeviceIcon from "products/Bindapt/BindaptIcon";
|
|||
import { pond } from "protobuf-ts/pond";
|
||||
//import { useHistory } from "react-router";
|
||||
import { makeStyles } from "@mui/styles";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) => ({
|
||||
iconButtons: {
|
||||
|
|
@ -99,11 +100,11 @@ export default function AgMapTools(props: Props) {
|
|||
const [binControlHovered, setBinControlHovered] = useState(false);
|
||||
const [scoutingControlHovered, setScoutingControlHovered] = useState(false);
|
||||
const [showFieldTitle, setShowFieldTitles] = useState(false);
|
||||
const navigate = useNavigate();
|
||||
//const history = useHistory();
|
||||
|
||||
const goToMyFields = () => {
|
||||
console.log("navigate to my fields page")
|
||||
//history.push("/myFields");
|
||||
navigate("/fields");
|
||||
};
|
||||
|
||||
const toggleControls = (control: "field" | "bin" | "scout") => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue