Fix Laura coding
This commit is contained in:
@@ -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[]>({
|
||||
|
||||
Reference in New Issue
Block a user