Skip to content
Snippets Groups Projects
Commit 5b42d20e authored by Holzheu Hannah's avatar Holzheu Hannah :pig:
Browse files

used zod types #39

parent 09e8a360
No related branches found
No related tags found
1 merge request!28Closes #40 : Custom useGrowbrosFetcher hook to make calls to the backend.
......@@ -3,10 +3,10 @@ import "../stylesheets/Suche.css";
import PlantsOverview from "../components/PlantsOverview";
import { useState, useEffect } from "react";
import FilterPage from "../components/FilterPage";
import { plant } from "../utils/commonTypes";
import { PlantNew } from "../utils/schemas";
function Suche() {
const [randomPlants, setRandomPlants] = useState<plant[] | null>(null);
const [randomPlants, setRandomPlants] = useState<PlantNew[] | null>(null);
const [error, setError] = useState<null | String>(null);
const randomPlantsCount: number = 30;
const token: String = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment