Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 351 | Rev 356 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 351 Rev 355
Línea 1... Línea 1...
1
import React from "react";
1
import React from "react";
-
 
2
import { useDispatch } from "react-redux";
2
import { axios } from "../../../../utils";
3
import { axios } from "../../../../utils";
-
 
4
import { addNotification } from "../../../../redux/notification/notification.actions";
Línea 3... Línea 5...
3
 
5
 
4
const ShareController = ({
6
const ShareController = ({
5
  children,
7
  children,
6
  shareData,
8
  shareData,
7
  onInteraction,
9
  onInteraction,
8
  onSuccess,
10
  onSuccess,
9
  onError,
11
  onError,
10
  onNonNativeShare,
12
  onNonNativeShare,
11
  disabled,
13
  disabled,
-
 
14
}) => {
-
 
15
  const dispatch = useDispatch();
12
}) => {
16
 
13
  const getShareUrl = async (url = "") => {
17
  const getShareUrl = async (url = "") => {
14
    await axios
18
    await axios
15
      .get(url)
19
      .get(url)
16
      .then(({ data }) => {
20
      .then(({ data }) => {