WIP
This commit is contained in:
parent
41f12db8f0
commit
843ef1395d
|
@ -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]}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default ItemStatusInLibrary
|
||||
|
|
Loading…
Reference in a new issue