Fix Laura coding

This commit is contained in:
FlorianSpeicher
2025-06-14 22:04:23 +02:00
parent d54a9dfdbc
commit 8eea799f5b

View File

@@ -16,18 +16,7 @@ import shelf from '../assets/fscomponents/fs_components_6.png';
import connectors from '../assets/fscomponents/fs_components_7.png';
import clips from '../assets/fscomponents/fs_components_8.png';
import arduino from '../assets/fscomponents/fs_components_9.png';
interface Item {
id: number;
uuid: string;
name: string;
price100: number;
discount100: number;
rating: number;
stock: number;
description: string;
category: string;
}
import Item from "../components/Item";
// API-Funktion, Items laden (URL anpassen!)
async function fetchItemList(): Promise<Item[]> {
@@ -42,8 +31,8 @@ export default function FSComponents() {
const { addToBasket } = useBasket();
const [hoverIndex, setHoverIndex] = useState<number | null>(null);
// Gewünschte IDs
const wantedIds = [60, 67, 68, 69, 70, 71, 72, 73, 74, 75];
// Sehr sehr dummer Weg das zu machen, aber wird später noch refactored
const wantedIds = ["60", "67", "68", "69", "70", "71", "72", "73", "74", "75"];
// Daten mit react-query laden
const { data = [], isLoading, error } = useQuery<Item[]>({