Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3532 Rev 3652
Línea 4... Línea 4...
4
 
4
 
5
import { InfinityList, PageHeader } from '@shared/components';
5
import { InfinityList, PageHeader } from '@shared/components';
Línea 6... Línea 6...
6
import { DetailTag } from '@microlearning/components';
6
import { DetailTag } from '@microlearning/components';
7
 
7
 
Línea 8... Línea 8...
8
export function TimelinePage() {
8
export function TimelinePage() {
9
  const { items, loading, hasMore, loadMore } = useTimeline();
9
  const { items, loading, elementRef } = useTimeline();
10
 
10
 
11
  return (
11
  return (
12
    <>
12
    <>
13
      <PageHeader title='Linea de tiempo' />
13
      <PageHeader title='Linea de tiempo' />
14
      <InfinityList
14
      <InfinityList
15
        items={items}
15
        items={items}
16
        loading={loading}
-
 
17
        emptyMessage='No hay elementos para mostrar'
16
        loading={loading}
18
        onEnd={loadMore}
17
        emptyMessage='No hay elementos para mostrar'
19
        hasMore={hasMore}
18
        elementRef={elementRef}
20
        renderItem={({ activity, added_on }, i) => (
19
        renderItem={({ activity, added_on }, i) => (
21
          <DetailTag key={i} title={activity} label={added_on} />
20
          <DetailTag key={i} title={activity} label={added_on} />