fix:magz detail

This commit is contained in:
Rama Priyanto 2025-02-03 09:51:30 +07:00
parent 049f0cf8fc
commit c37ab71a23
1 changed files with 11 additions and 2 deletions

View File

@ -33,7 +33,7 @@ export default function EMagazineDetail() {
const doDownload = async (fileName: string, title: string): Promise<void> => {
try {
const response = await fetch(
`http://38.47.180.165:8802/magazine-files/viewer/${fileName}`
`https://38.47.180.165:8802/magazine-files/viewer/${fileName}`
);
if (!response.ok) {
@ -74,10 +74,19 @@ export default function EMagazineDetail() {
{detailData?.title}
</div>
<div className="rounded-lg h-[380px] flex items-center justify-center">
<img
{/* <img
src="/emagazine.jpeg"
alt="emagazine"
className="h-[380px] rounded-md py-1"
/> */}
<img
src={`https://kontenhumas.com/magazines/thumbnail/viewer/${
detailData?.thumbnailPath.split("/")[
detailData?.thumbnailPath.split("/").length - 1
]
}`}
alt="emagazine"
className="h-[380px] rounded-md py-1"
/>
</div>
<div