Added service worker regisration refresh BOD-73

This commit is contained in:
Patrick Fic
2020-08-21 12:47:54 -07:00
parent 97629a91fb
commit f29b961397
9 changed files with 117 additions and 7 deletions

View File

@@ -1,4 +1,6 @@
import { ApolloProvider } from "@apollo/react-common";
import { ConfigProvider } from "antd";
import enLocale from "antd/es/locale/en_US";
import { ApolloLink } from "apollo-boost";
import { InMemoryCache } from "apollo-cache-inmemory";
import ApolloClient from "apollo-client";
@@ -9,16 +11,15 @@ import apolloLogger from "apollo-link-logger";
import { RetryLink } from "apollo-link-retry";
import { WebSocketLink } from "apollo-link-ws";
import { getMainDefinition } from "apollo-utilities";
import axios from "axios";
import LogRocket from "logrocket";
import moment from "moment";
import React from "react";
import GlobalLoadingBar from "../components/global-loading-bar/global-loading-bar.component";
import { auth } from "../firebase/firebase.utils";
import errorLink from "../graphql/apollo-error-handling";
import App from "./App";
import { ConfigProvider } from "antd";
import enLocale from "antd/es/locale/en_US";
import moment from "moment";
import axios from "axios";
import RegisterServiceWorker from "./registerServiceWorker.component";
moment.locale("en-US");
@@ -151,6 +152,7 @@ export default function AppContainer() {
locale={enLocale}
>
<GlobalLoadingBar />
<RegisterServiceWorker />
<App />
</ConfigProvider>
</ApolloProvider>