Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3313 Rev 3719
Línea 1... Línea 1...
1
import { useContext } from 'react'
1
import { useContext } from 'react';
2
 
2
 
3
import { MyProgressContext } from '@providers/habits/progress'
3
import { MyProgressContext } from '@providers/habits/progress';
4
 
4
 
5
export function useMyProgress() {
5
export function useMyProgress() {
6
  const { loading, habits, getHabitById } = useContext(MyProgressContext)
6
  const { loading, habits, getHabitById } = useContext(MyProgressContext);
7
 
7
 
8
  return {
8
  return {
9
    loading,
9
    loading,
10
    habits,
10
    habits,
11
    getHabitById
11
    getHabitById
12
  }
12
  };
13
}
13
}