Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1 Rev 1068
Línea 51... Línea 51...
51
    accessibility,
51
    accessibility,
52
    website,
52
    website,
53
    withoutFeeds,
53
    withoutFeeds,
54
    linkInmail
54
    linkInmail
55
  } = props.backendVars;
55
  } = props.backendVars;
-
 
56
 
56
  // redux destructuring
57
  // redux destructuring
57
  const { setTimelineUrl, addNotification: AddNotification } = props;
58
  const { setTimelineUrl, addNotification: AddNotification } = props;
Línea 58... Línea 59...
58
 
59
 
59
  const groupTabs = {
60
  const groupTabs = {
60
    FEED_TAB: "FEED_TAB",
61
    FEED_TAB: "FEED_TAB",
61
    INFO_TAB: "INFO_TAB",
62
    INFO_TAB: "INFO_TAB",
-
 
63
  };
62
  };
64
 
63
  // states
65
  // states
64
  const [currentTab, setCurrentTab] = useState(withoutFeeds ? groupTabs.INFO_TAB : groupTabs.FEED_TAB);
66
  const [currentTab, setCurrentTab] = useState(withoutFeeds ? groupTabs.INFO_TAB : groupTabs.FEED_TAB);
65
  const [actionLinks, setActionLinks] = useState({})
67
  const [actionLinks, setActionLinks] = useState({})
-
 
68
  const [linkInvite, setLinkInvite] = useState('')
66
  const [linkInvite, setLinkInvite] = useState('')
69
  
67
  setTimelineUrl(routeTimeline);
70
  setTimelineUrl(routeTimeline);
68
  const load = () =>{
71
  const load = () =>{
69
    axios.get('')
72
    axios.get('')
70
      .then(res => {
73
      .then(res => {
Línea 79... Línea 82...
79
      })
82
      })
80
      .catch(err => {
83
      .catch(err => {
81
        console.log('>>: err > ', err)
84
        console.log('>>: err > ', err)
82
      })
85
      })
83
  }
86
  }
-
 
87
  
84
  React.useEffect(() =>{
88
  React.useEffect(() =>{
85
    load()
89
    load()
86
  }, [])
90
  }, [])
-
 
91
 
87
  const handleActionLink = (url) => {
92
  const handleActionLink = (url) => {
88
    axios.post(url)
93
    axios.post(url)
89
      .then(res => {
94
      .then(res => {
90
        if(res.data.success){
95
        if(res.data.success){
91
          AddNotification({
96
          AddNotification({
Línea 102... Línea 107...
102
      })
107
      })
103
      .catch(err => {
108
      .catch(err => {
104
        console.log('>>: err > ', err)
109
        console.log('>>: err > ', err)
105
      })
110
      })
106
  }
111
  }
-
 
112
  
107
  return (
113
  return (
108
    <React.Fragment>
114
    <React.Fragment>
109
      <section className="cover-sec">
115
      <section className="cover-sec">
110
        <img
116
        <img
111
          // src="<?php echo $this->url('storage', ['type' => 'group-cover', 'code' => $group_id_encrypted, 'filename' => $cover]) ?>"
117
          // src="<?php echo $this->url('storage', ['type' => 'group-cover', 'code' => $group_id_encrypted, 'filename' => $cover]) ?>"