Fix useBackgroundTask hook

This commit is contained in:
dominik-zeglen 2020-06-23 15:24:45 +02:00
parent c57598fb09
commit 25e7ca8aa7

View file

@ -1,6 +1,8 @@
import BackgroundTasksContext from "@saleor/containers/BackgroundTasks/context"; import BackgroundTasksContext from "@saleor/containers/BackgroundTasks/context";
import { useContext } from "react"; import { useContext } from "react";
const useBackgroundTask = useContext(BackgroundTasksContext); function useBackgroundTask() {
return useContext(BackgroundTasksContext);
}
export default useBackgroundTask; export default useBackgroundTask;