🔧 Renamed IMPORT_* to LIBRARY_*

This commit is contained in:
2022-02-03 00:19:32 -08:00
parent bcfc174829
commit c6265599de
14 changed files with 70 additions and 51 deletions

View File

@@ -6,7 +6,7 @@ import { escapePoundSymbol } from "../shared/utils/formatting.utils";
import { isNil, isUndefined, map } from "lodash";
import { detectIssueTypes } from "../shared/utils/tradepaperback.utils";
import Masonry from "react-masonry-css";
import { IMPORT_SERVICE_HOST } from "../constants/endpoints";
import { LIBRARY_SERVICE_HOST } from "../constants/endpoints";
type RecentlyImportedProps = {
comicBookCovers: any;
@@ -19,7 +19,7 @@ export const RecentlyImported = ({
default: 5,
1100: 4,
700: 2,
600: 1,
600: 2,
};
return (
<>
@@ -38,7 +38,7 @@ export const RecentlyImported = ({
let comicName = "";
if (!isNil(rawFileDetails)) {
const encodedFilePath = encodeURI(
`${IMPORT_SERVICE_HOST}/${rawFileDetails.cover.filePath}`,
`${LIBRARY_SERVICE_HOST}/${rawFileDetails.cover.filePath}`,
);
imagePath = escapePoundSymbol(encodedFilePath);
comicName = rawFileDetails.name;