Skip to content
Snippets Groups Projects
Commit 142f3d30 authored by Karsch Lukas's avatar Karsch Lukas
Browse files

display error message, remove comment

parent 00cc070c
No related branches found
No related tags found
Loading
import { useState } from "react";
import { DropdownOption, PropsDropDownFilter } from "../utils/commonTypes";
import {useState} from "react";
import {DropdownOption, PropsDropDownFilter} from "../utils/commonTypes";
import "../stylesheets/DropDownFilter.css";
function DropDownFilter<T extends DropdownOption>(props: PropsDropDownFilter<T>) {
......@@ -27,7 +27,4 @@ function DropDownFilter<T extends DropdownOption>(props: PropsDropDownFilter<T>)
);
}
//TODO filteronchange ? weg wenn lara Garten fertig
export default DropDownFilter;
......@@ -39,6 +39,13 @@ function Suche() {
Es wurden keine Pflanzen passend zu deiner Suchanfrage gefunden
</div>
)}
{
error && (
<div>
Es ist ein Fehler aufgetreten.
</div>
)
}
<PlantsOverview plants={plants}/>
</div>
</>
......
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