Línea 3... |
Línea 3... |
3 |
import { useDispatch } from "react-redux"
|
3 |
import { useDispatch } from "react-redux"
|
4 |
import { EmailIcon, EmailShareButton, FacebookIcon, FacebookShareButton, RedditIcon, RedditShareButton, TelegramIcon, TelegramShareButton, TwitterIcon, TwitterShareButton, WhatsappIcon, WhatsappShareButton } from "react-share"
|
4 |
import { EmailIcon, EmailShareButton, FacebookIcon, FacebookShareButton, RedditIcon, RedditShareButton, TelegramIcon, TelegramShareButton, TwitterIcon, TwitterShareButton, WhatsappIcon, WhatsappShareButton } from "react-share"
|
5 |
import { addNotification } from "../../../../redux/notification/notification.actions"
|
5 |
import { addNotification } from "../../../../redux/notification/notification.actions"
|
6 |
import { axios } from "../../../../utils"
|
6 |
import { axios } from "../../../../utils"
|
Línea 7... |
Línea 7... |
7 |
|
7 |
|
8 |
export default function withReactionList({ Component, url, icon, title, color }) {
|
8 |
export default function withReactionList(Component, url, params) {
|
9 |
return function () {
|
9 |
return function () {
|
10 |
const dispatch = useDispatch()
|
10 |
const dispatch = useDispatch()
|
11 |
const [shareOptions, setShareOptions] = useState(false)
|
11 |
const [shareOptions, setShareOptions] = useState(false)
|
Línea 29... |
Línea 29... |
29 |
}
|
29 |
}
|
30 |
});
|
30 |
});
|
Línea 31... |
Línea 31... |
31 |
|
31 |
|
32 |
return (
|
32 |
return (
|
33 |
<div className="position-relative" onClick={handleDisplayReactionList}>
|
33 |
<div className="position-relative" onClick={handleDisplayReactionList}>
|
34 |
<Component Icon={icon} title={title} color={color} />
|
34 |
<Component {...params} />
|
35 |
{shareOptions &&
|
35 |
{shareOptions &&
|
36 |
<div className="ext_share" >
|
36 |
<div className="ext_share" >
|
37 |
<FacebookShareButton beforeOnClick={() => getShareUrl} url={shareUrl}>
|
37 |
<FacebookShareButton beforeOnClick={() => getShareUrl} url={shareUrl}>
|
38 |
<FacebookIcon size={32} round />
|
38 |
<FacebookIcon size={32} round />
|