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">
|
||||
<Label htmlFor="wilayahPublish">Jenis Agenda</Label>
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
{roleId === 1 && (
|
||||
|
||||
<div>
|
||||
<Checkbox
|
||||
id="semua"
|
||||
|
|
@ -799,7 +799,7 @@ const EventModal = ({
|
|||
Semua
|
||||
</label>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{roleId === 1 && (
|
||||
<div>
|
||||
<Checkbox
|
||||
|
|
|
|||
|
|
@ -33,7 +33,18 @@ export default function DetailContentBlast() {
|
|||
close();
|
||||
|
||||
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)) {
|
||||
setDetail({
|
||||
id: detailData.id,
|
||||
|
|
@ -41,7 +52,7 @@ export default function DetailContentBlast() {
|
|||
subject: detailData.subject,
|
||||
sendTime: detailData.sendTime,
|
||||
thumbnail: detailData.thumbnail,
|
||||
contentUrl: detailData.contentUrl,
|
||||
contentUrl: updatedUrl,
|
||||
});
|
||||
} else {
|
||||
setNotFound(true);
|
||||
|
|
|
|||
|
|
@ -221,6 +221,7 @@ export default function ContentBlast(props: { type: string }) {
|
|||
<FormItem>
|
||||
<FormLabel>Subject</FormLabel>
|
||||
<Select
|
||||
className="z-50"
|
||||
options={dataSelectCampaign}
|
||||
closeMenuOnSelect={false}
|
||||
components={animatedComponent}
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@ const HeroNew = (props: { group?: string }) => {
|
|||
useEffect(() => {
|
||||
const timer = setTimeout(() => {
|
||||
setIsLoading(false);
|
||||
}, 10000);
|
||||
}, 3000);
|
||||
|
||||
return () => clearTimeout(timer);
|
||||
}, []);
|
||||
|
|
@ -454,7 +454,7 @@ const HeroNew = (props: { group?: string }) => {
|
|||
|
||||
const interval = setInterval(() => {
|
||||
setScrollIndex((prevIndex) => (prevIndex + 1) % content.length);
|
||||
}, 3000);
|
||||
}, 10000);
|
||||
|
||||
return () => clearInterval(interval);
|
||||
}, [content]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue