Skip to content

Commit

Permalink
Hook it up to project
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-zeglen committed Jun 23, 2020
1 parent 35a89bf commit a2a72d8
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/hooks/useBackgroundTask.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import BackgroundTasksContext from "@saleor/containers/BackgroundTasks/context";
import { useContext } from "react";

const useBackgroundTask = useContext(BackgroundTasksContext);

export default useBackgroundTask;
13 changes: 8 additions & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import { WindowTitle } from "./components/WindowTitle";
import { API_URI, APP_MOUNT_URI, GTM_ID } from "./config";
import ConfigurationSection, { createConfigurationMenu } from "./configuration";
import AppStateProvider from "./containers/AppState";
import BackgroundTasksProvider from "./containers/BackgroundTasks";
import { CustomerSection } from "./customers";
import DiscountSection from "./discounts";
import HomePage from "./home";
Expand Down Expand Up @@ -135,11 +136,13 @@ const App: React.FC = () => {
<DateProvider>
<LocaleProvider>
<MessageManager>
<AppStateProvider>
<ShopProvider>
<Routes />
</ShopProvider>
</AppStateProvider>
<BackgroundTasksProvider>
<AppStateProvider>
<ShopProvider>
<Routes />
</ShopProvider>
</AppStateProvider>
</BackgroundTasksProvider>
</MessageManager>
</LocaleProvider>
</DateProvider>
Expand Down
23 changes: 23 additions & 0 deletions src/products/types/CheckExportFileStatus.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.

import { JobStatusEnum } from "./../../types/globalTypes";

// ====================================================
// GraphQL query operation: CheckExportFileStatus
// ====================================================

export interface CheckExportFileStatus_exportFile {
__typename: "ExportFile";
id: string;
status: JobStatusEnum;
}

export interface CheckExportFileStatus {
exportFile: CheckExportFileStatus_exportFile | null;
}

export interface CheckExportFileStatusVariables {
id: string;
}

0 comments on commit a2a72d8

Please sign in to comment.