diff --git a/frontend/src/pages/Broadcast/Component/AllBroadcasts/Card/Card.jsx b/frontend/src/pages/Broadcast/Component/AllBroadcasts/Card/Card.jsx
index e5b67384..d7fc290a 100644
--- a/frontend/src/pages/Broadcast/Component/AllBroadcasts/Card/Card.jsx
+++ b/frontend/src/pages/Broadcast/Component/AllBroadcasts/Card/Card.jsx
@@ -13,9 +13,9 @@ export function Card(props) {
setFlipped(!flipped);
};
- const handleOpen = (s, h, i) => {
+ const handleOpen = (s, h, i, l) => {
setOpen(true);
- setData({ head: h, desc: s, img: i });
+ setData({ head: h, desc: s, img: i, link: l });
};
const handleClose = () => {
@@ -53,9 +53,7 @@ export function Card(props) {
>
{props.project.title}
-
- {props.project.content.substring(0, 400)}...
-
+
{months[date.getMonth()]},{date.getFullYear()}
@@ -86,7 +84,8 @@ export function Card(props) {
handleOpen(
props.project.content,
props.project.title,
- props.project.imageUrl[0]
+ props.project.imageUrl[0],
+ props.project.link
)
}
className={
diff --git a/frontend/src/pages/Broadcast/Component/Carousel/Carousel.jsx b/frontend/src/pages/Broadcast/Component/Carousel/Carousel.jsx
index a34563fb..042c9f43 100644
--- a/frontend/src/pages/Broadcast/Component/Carousel/Carousel.jsx
+++ b/frontend/src/pages/Broadcast/Component/Carousel/Carousel.jsx
@@ -15,9 +15,9 @@ export function Carousel(props) {
const [open, setOpen] = useState(false);
const [dataa, setDataa] = useState([]);
const [isLoaded, setLoaded] = useState(false);
- const handleOpen = (s, h, i) => {
+ const handleOpen = (s, h, i, l) => {
setOpen(true);
- setData({ head: h, desc: s, img: i });
+ setData({ head: h, desc: s, img: i, link: l });
};
const handleClose = () => {
@@ -131,7 +131,7 @@ export function Carousel(props) {
: `${style["slide-card-light"]} ${style["slide-card"]}`
}
onClick={() =>
- handleOpen(item.content, item.title, item.imageUrl[0])
+ handleOpen(item.content, item.title, item.imageUrl[0], item?.link)
}
>
{item.title}
-
- {item.content.substring(0, 210)}...
-
+
))}
diff --git a/frontend/src/pages/Broadcast/Component/Carousel/Modal/Modals.jsx b/frontend/src/pages/Broadcast/Component/Carousel/Modal/Modals.jsx
index 1253b0db..c14d83ea 100644
--- a/frontend/src/pages/Broadcast/Component/Carousel/Modal/Modals.jsx
+++ b/frontend/src/pages/Broadcast/Component/Carousel/Modal/Modals.jsx
@@ -6,6 +6,7 @@ import style from "./modals.module.scss";
export function Modals(props) {
let dark = props.theme;
+ console.log(props)
return (