matt HOFFNER commited on
Commit
1d95cc0
1 Parent(s): 15ae933

hide template select modal for now

Browse files
Files changed (1) hide show
  1. pages/_app.tsx +0 -19
pages/_app.tsx CHANGED
@@ -18,15 +18,7 @@ import NProgress from "nprogress";
18
  import { ApolloProvider } from "@apollo/client";
19
 
20
  import { createApolloClient } from "../utils/client";
21
- import { sessionOptions } from "../utils/withSession";
22
  import { store } from "../store/store";
23
- import {
24
- OauthInput,
25
- OauthProvider,
26
- set_initial_user,
27
- withOauth,
28
- } from "../store/features/authSlice";
29
- import { RootModal } from "../components/Modals/RootModal";
30
 
31
  interface MyAppProps extends AppProps {
32
  initialUser?: IronSessionData["user"] | null;
@@ -37,22 +29,11 @@ function MyApp({ Component, pageProps, router, initialUser }: MyAppProps) {
37
  Router.events.on("routeChangeComplete", () => NProgress.done());
38
  Router.events.on("routeChangeError", () => NProgress.done());
39
 
40
- useEffect(() => {
41
- window.withOauth = function (input: OauthInput, provider: OauthProvider) {
42
- store.dispatch(withOauth(input, provider));
43
- };
44
- }, []);
45
-
46
- useEffect(() => {
47
- store.dispatch(set_initial_user(initialUser));
48
- }, [initialUser]);
49
-
50
  return (
51
  <>
52
  <ApolloProvider client={createApolloClient()}>
53
  <Provider store={store}>
54
  <Component {...pageProps} />
55
- <RootModal />
56
  </Provider>
57
  </ApolloProvider>
58
  </>
 
18
  import { ApolloProvider } from "@apollo/client";
19
 
20
  import { createApolloClient } from "../utils/client";
 
21
  import { store } from "../store/store";
 
 
 
 
 
 
 
22
 
23
  interface MyAppProps extends AppProps {
24
  initialUser?: IronSessionData["user"] | null;
 
29
  Router.events.on("routeChangeComplete", () => NProgress.done());
30
  Router.events.on("routeChangeError", () => NProgress.done());
31
 
 
 
 
 
 
 
 
 
 
 
32
  return (
33
  <>
34
  <ApolloProvider client={createApolloClient()}>
35
  <Provider store={store}>
36
  <Component {...pageProps} />
 
37
  </Provider>
38
  </ApolloProvider>
39
  </>