Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3181 Rev 3182
Línea 1... Línea 1...
1
import { useState, useEffect } from 'react'
1
import { useState, useEffect } from 'react'
2
import { useDispatch, useSelector } from 'react-redux'
2
import { useDispatch, useSelector } from 'react-redux'
Línea 3... Línea 3...
3
 
3
 
4
import {
4
import {
5
  closeShareModal,
5
  closeShareModal,
6
  openShareModal,
-
 
7
  setModalType
6
  openShareModal
Línea 8... Línea 7...
8
} from '@store/share-modal/shareModal.actions'
7
} from '@store/share-modal/shareModal.actions'
9
 
8
 
10
export function useShareModal() {
9
export function useShareModal() {
Línea 21... Línea 20...
21
    dispatch(openShareModal(postUrl, modalType, feedType))
20
    dispatch(openShareModal(postUrl, modalType, feedType))
22
  }
21
  }
Línea 23... Línea 22...
23
 
22
 
24
  const onReject = () => {
23
  const onReject = () => {
25
    setShowConfirm(false)
-
 
26
    setModalType(lastModalType)
-
 
27
    dispatch(closeShareModal())
24
    setShowConfirm(false)
28
    dispatch(openShareModal(postUrl, lastModalType, feedType))
25
    dispatch(openShareModal(postUrl, lastModalType, feedType))
Línea 29... Línea 26...
29
  }
26
  }
30
 
27