Merge branch 'main' of https://gitlab.com/hanifsalafi/mediahub_redesign into prod
This commit is contained in:
commit
f30a6475a4
|
|
@ -243,7 +243,8 @@ export default function FilterAudioComponent(props: {
|
||||||
{newContent?.map((audio: any) => (
|
{newContent?.map((audio: any) => (
|
||||||
<CarouselItem key={audio?.id} className="md:basis-1/2 lg:basis-1/3">
|
<CarouselItem key={audio?.id} className="md:basis-1/2 lg:basis-1/3">
|
||||||
<Link
|
<Link
|
||||||
href={prefixPath + `/audio/detail/${audio?.slug}`}
|
href={`${prefixPath}/${audio?.slug}`}
|
||||||
|
// href={prefixPath + `/audio/detail/${audio?.slug}`}
|
||||||
// onClick={() =>
|
// onClick={() =>
|
||||||
// router.push(prefixPath + `/audio/detail/${audio?.slug}`)
|
// router.push(prefixPath + `/audio/detail/${audio?.slug}`)
|
||||||
// }
|
// }
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,8 @@ export default function FilterDocumentComponent(props: {
|
||||||
{newContent?.map((text: any) => (
|
{newContent?.map((text: any) => (
|
||||||
<CarouselItem key={text?.id} className="md:basis-1/2 lg:basis-1/3">
|
<CarouselItem key={text?.id} className="md:basis-1/2 lg:basis-1/3">
|
||||||
<Link
|
<Link
|
||||||
href={prefixPath + `/document/detail/${text?.slug}`}
|
href={`${prefixPath}/${text?.slug}`}
|
||||||
|
// href={prefixPath + `/document/detail/${text?.slug}`}
|
||||||
// onClick={() =>
|
// onClick={() =>
|
||||||
// router.push(prefixPath + `/document/detail/${text?.slug}`)
|
// router.push(prefixPath + `/document/detail/${text?.slug}`)
|
||||||
// }
|
// }
|
||||||
|
|
|
||||||
|
|
@ -157,17 +157,11 @@ export default function FilterImageComponent(props: {
|
||||||
}${endDateString ? `&endDate=${endDateString}` : ""}`;
|
}${endDateString ? `&endDate=${endDateString}` : ""}`;
|
||||||
const href = `${basePath}/image/${fullQuery}`;
|
const href = `${basePath}/image/${fullQuery}`;
|
||||||
|
|
||||||
// let prefixPath = poldaName
|
|
||||||
// ? `/polda/${poldaName}`
|
|
||||||
// : satkerName
|
|
||||||
// ? `/satker/${satkerName}`
|
|
||||||
// : "";
|
|
||||||
|
|
||||||
let prefixPath = poldaName
|
let prefixPath = poldaName
|
||||||
? `/polda/${poldaName}/image/detail`
|
? `/polda/${poldaName}`
|
||||||
: satkerName
|
: satkerName
|
||||||
? `/satker/${satkerName}/image/detail`
|
? `/satker/${satkerName}`
|
||||||
: `/image/detail`;
|
: "";
|
||||||
|
|
||||||
return newContent?.length > 0 ? (
|
return newContent?.length > 0 ? (
|
||||||
<div className="flex flex-col gap-3 w-full">
|
<div className="flex flex-col gap-3 w-full">
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,8 @@ export default function FilterVideoComponent(props: {
|
||||||
{newContent?.map((video: any) => (
|
{newContent?.map((video: any) => (
|
||||||
<CarouselItem key={video?.id} className="md:basis-1/2 lg:basis-1/3">
|
<CarouselItem key={video?.id} className="md:basis-1/2 lg:basis-1/3">
|
||||||
<Link
|
<Link
|
||||||
href={prefixPath + `/video/detail/${video?.slug}`}
|
href={`${prefixPath}/${video?.slug}`}
|
||||||
|
// href={prefixPath + `/video/detail/${video?.slug}`}
|
||||||
// onClick={() =>
|
// onClick={() =>
|
||||||
// router.push(prefixPath + `/video/detail/${video?.slug}`)
|
// router.push(prefixPath + `/video/detail/${video?.slug}`)
|
||||||
// }
|
// }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue