From 843ef1395d10bc85c89d40006e050c1ad9cfd211 Mon Sep 17 00:00:00 2001 From: Nikhil Nawgiri Date: Sat, 2 Nov 2024 18:41:12 +0100 Subject: [PATCH] WIP --- fe/src/components/item/ItemStatusInLibrary.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fe/src/components/item/ItemStatusInLibrary.tsx b/fe/src/components/item/ItemStatusInLibrary.tsx index 1b7dc79..d0e02ed 100644 --- a/fe/src/components/item/ItemStatusInLibrary.tsx +++ b/fe/src/components/item/ItemStatusInLibrary.tsx @@ -1,4 +1,5 @@ import { useEffect, useState } from "react"; +import { getItemStatusInLibrary } from "../../helper/internalApiHelper"; const LIBRARY_STATUS_AVAILABLE = "available"; const LIBRARY_STATUS_REQUESTED= "requested"; @@ -25,6 +26,7 @@ const ItemStatusInLibrary = ({ useEffect(() => { // begin fetching setIsFetching(true); + getItemStatusInLibrary(imdbId); }); return ( @@ -37,5 +39,6 @@ const ItemStatusInLibrary = ({ && statusIcons[libraryState]} ); +} export default ItemStatusInLibrary