Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1766 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1766 Rev 2774
Línea 3... Línea 3...
3
 
3
 
4
import { axios } from '@app/utils'
4
import { axios } from '@app/utils'
5
import { addNotification } from '@app/redux/notification/notification.actions'
5
import { addNotification } from '@app/redux/notification/notification.actions'
Línea 6... Línea 6...
6
import { showReportModal } from '@app/redux/report/report.actions'
6
import { showReportModal } from '@app/redux/report/report.actions'
7
 
7
 
8
const useMessages = (messagesUrl) => {
8
export function useMessages(messagesUrl) {
9
  const [loading, setLoading] = useState(false)
9
  const [loading, setLoading] = useState(false)
10
  const [messages, setMessages] = useState([])
10
  const [messages, setMessages] = useState([])
11
  const [currentPage, setCurrentPage] = useState(1)
11
  const [currentPage, setCurrentPage] = useState(1)
Línea 149... Línea 149...
149
    loading,
149
    loading,
150
    loadMore: changePage,
150
    loadMore: changePage,
151
    report: handleReport
151
    report: handleReport
152
  }
152
  }
153
}
153
}
154
 
-
 
155
export default useMessages
-