🍬 Removed hardcoded reference to import-service

TODO: Remove the repetitive use of thumbnail generating logic
This commit is contained in:
2021-10-21 12:03:58 -07:00
parent 419962c756
commit 116cbf2a62
8 changed files with 28 additions and 13 deletions

View File

@@ -15,6 +15,7 @@ import Masonry from "react-masonry-css";
import Card from "./Carda";
import { detectIssueTypes } from "../shared/utils/tradepaperback.utils";
import { Link } from "react-router-dom";
import { IMPORT_SERVICE_HOST } from "../constants/endpoints";
interface ILibraryGridProps {}
@@ -47,7 +48,7 @@ export const LibraryGrid = (libraryGridProps: ILibraryGridProps) => {
let comicName = "";
if (!isNil(rawFileDetails)) {
const encodedFilePath = encodeURI(
"http://localhost:3000" +
`${IMPORT_SERVICE_HOST}` +
removeLeadingPeriod(rawFileDetails.cover.filePath),
);
imagePath = escapePoundSymbol(encodedFilePath);