🪛 Refactoring to use the updated rendition path

This commit is contained in:
2021-07-27 22:02:12 -07:00
parent 57f7621c0e
commit 5a7f30f007
6 changed files with 31 additions and 62 deletions

View File

@@ -22,23 +22,17 @@ class Card extends React.Component<IProps, IState> {
public drawCoverCard = (
metadata: IExtractedComicBookCoverFile,
): JSX.Element => {
const filePath = encodeURI(
"http://localhost:3000" +
removeLeadingPeriod(metadata.path) +
"/" +
metadata.name,
const encodedFilePath = encodeURI(
"http://localhost:3000" + removeLeadingPeriod(metadata.path),
);
const filePath = escapePoundSymbol(encodedFilePath);
return (
<div>
<div className="card generic-card">
<div>
<div className="card-image">
<figure className="image">
<img
src={escapePoundSymbol(filePath)}
alt="Placeholder image"
/>
<img src={filePath} alt="Placeholder image" />
</figure>
</div>
<div className="card-content">

View File

@@ -55,7 +55,7 @@ const mapDispatchToProps = (dispatch) => ({
getRecentlyImportedComicBooks({
paginationOptions: {
page: 0,
limit: 18,
limit: 31,
},
}),
);