🔥 Remove tryRequest page

This commit is contained in:
ajnart
2022-08-08 13:44:20 +02:00
parent 67f19b5186
commit 1741829761

View File

@@ -1,22 +0,0 @@
import axios from 'axios';
import { useEffect, useState } from 'react';
import RequestModal from '../modules/overseerr/RequestModal';
export default function TryRequest(props: any) {
const [OverseerrResults, setOverseerrResults] = useState<any[]>([]);
useEffect(() => {
// Use the overseerr API get the media info.
axios
.get('/api/modules/overseerr?query=Lucifer')
.then((res) => {
setOverseerrResults(res.data.results);
})
.catch((err) => {
throw err;
});
}, [props]);
if (!OverseerrResults || OverseerrResults.length === 0) {
return null;
}
return <RequestModal base={OverseerrResults[0]} />;
}