fix: link in broadcast
This commit is contained in:
parent
bd5d87c7ce
commit
71f0b3b52e
|
|
@ -788,7 +788,7 @@ const EventModal = ({
|
||||||
<div className="space-y-1.5">
|
<div className="space-y-1.5">
|
||||||
<Label htmlFor="wilayahPublish">Jenis Agenda</Label>
|
<Label htmlFor="wilayahPublish">Jenis Agenda</Label>
|
||||||
<div className="flex flex-wrap items-center gap-2">
|
<div className="flex flex-wrap items-center gap-2">
|
||||||
{roleId === 1 && (
|
|
||||||
<div>
|
<div>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
id="semua"
|
id="semua"
|
||||||
|
|
@ -799,7 +799,7 @@ const EventModal = ({
|
||||||
Semua
|
Semua
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
)}
|
|
||||||
{roleId === 1 && (
|
{roleId === 1 && (
|
||||||
<div>
|
<div>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,18 @@ export default function DetailContentBlast() {
|
||||||
close();
|
close();
|
||||||
|
|
||||||
const detailData = res?.data?.data;
|
const detailData = res?.data?.data;
|
||||||
|
let updatedUrl = detailData.contentUrl;
|
||||||
|
|
||||||
|
const domainsToUpdate = ["mediahub.polri.go.id", "netidhub.com"];
|
||||||
|
|
||||||
|
domainsToUpdate.forEach((domain) => {
|
||||||
|
if (
|
||||||
|
updatedUrl.includes(domain) &&
|
||||||
|
!updatedUrl.includes(`${domain}/in`)
|
||||||
|
) {
|
||||||
|
updatedUrl = updatedUrl.replace(domain, `${domain}/in`);
|
||||||
|
}
|
||||||
|
});
|
||||||
if (detailData && detailData.id === Number(id)) {
|
if (detailData && detailData.id === Number(id)) {
|
||||||
setDetail({
|
setDetail({
|
||||||
id: detailData.id,
|
id: detailData.id,
|
||||||
|
|
@ -41,7 +52,7 @@ export default function DetailContentBlast() {
|
||||||
subject: detailData.subject,
|
subject: detailData.subject,
|
||||||
sendTime: detailData.sendTime,
|
sendTime: detailData.sendTime,
|
||||||
thumbnail: detailData.thumbnail,
|
thumbnail: detailData.thumbnail,
|
||||||
contentUrl: detailData.contentUrl,
|
contentUrl: updatedUrl,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
setNotFound(true);
|
setNotFound(true);
|
||||||
|
|
|
||||||
|
|
@ -221,6 +221,7 @@ export default function ContentBlast(props: { type: string }) {
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Subject</FormLabel>
|
<FormLabel>Subject</FormLabel>
|
||||||
<Select
|
<Select
|
||||||
|
className="z-50"
|
||||||
options={dataSelectCampaign}
|
options={dataSelectCampaign}
|
||||||
closeMenuOnSelect={false}
|
closeMenuOnSelect={false}
|
||||||
components={animatedComponent}
|
components={animatedComponent}
|
||||||
|
|
|
||||||
|
|
@ -311,7 +311,7 @@ const HeroNew = (props: { group?: string }) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const timer = setTimeout(() => {
|
const timer = setTimeout(() => {
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
}, 10000);
|
}, 3000);
|
||||||
|
|
||||||
return () => clearTimeout(timer);
|
return () => clearTimeout(timer);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
@ -454,7 +454,7 @@ const HeroNew = (props: { group?: string }) => {
|
||||||
|
|
||||||
const interval = setInterval(() => {
|
const interval = setInterval(() => {
|
||||||
setScrollIndex((prevIndex) => (prevIndex + 1) % content.length);
|
setScrollIndex((prevIndex) => (prevIndex + 1) % content.length);
|
||||||
}, 3000);
|
}, 10000);
|
||||||
|
|
||||||
return () => clearInterval(interval);
|
return () => clearInterval(interval);
|
||||||
}, [content]);
|
}, [content]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue