Merge branch 'dev-restructure' of https://gitlab.com/hanifsalafi/web-humas-polri into prod
This commit is contained in:
commit
9befccf503
|
|
@ -613,7 +613,7 @@ export default function EditArticleForm(props: { isDetail: boolean }) {
|
|||
)}
|
||||
|
||||
{isDetail ? (
|
||||
detailfiles ? (
|
||||
detailfiles.length > 0 ? (
|
||||
<>
|
||||
<div>
|
||||
<Image
|
||||
|
|
@ -693,7 +693,7 @@ export default function EditArticleForm(props: { isDetail: boolean }) {
|
|||
<div className="w-full lg:w-[35%] flex flex-col gap-8">
|
||||
<div className="h-fit bg-white rounded-lg p-8 flex flex-col gap-1">
|
||||
<p className="text-sm">Thubmnail</p>
|
||||
{isDetail ? (
|
||||
{isDetail && thumbnail !== "" ? (
|
||||
<Image
|
||||
width={480}
|
||||
height={360}
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ export default function MedolUpdate() {
|
|||
<Image
|
||||
width={480}
|
||||
height={480}
|
||||
alt="tes"
|
||||
alt="thumbnail"
|
||||
className="object-cover !h-[20vh]"
|
||||
// src={newsItem.thumbnailLink}
|
||||
src={`https://mediahub.polri.go.id/api/media/view?id=${newsItem?.id}&operation=thumbnail&isSmall=true`}
|
||||
|
|
@ -274,7 +274,7 @@ export default function MedolUpdate() {
|
|||
<Image
|
||||
width={480}
|
||||
height={480}
|
||||
alt="tes"
|
||||
alt="thumbnail"
|
||||
className="object-cover !h-[20vh]"
|
||||
src={newsItem?.image}
|
||||
/>
|
||||
|
|
@ -367,7 +367,7 @@ export default function MedolUpdate() {
|
|||
<Image
|
||||
width={480}
|
||||
height={480}
|
||||
alt="tes"
|
||||
alt="thumnail"
|
||||
className="object-cover !h-[20vh]"
|
||||
src={newsItem?.thumbnail}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue