@ludo.ninja/components 1.7.1 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,5 @@
1
1
  import { AppProps } from 'next/app';
2
- import { APOLLO_STATE_PROP_NAME } from '@ludo.ninja/components/src/api/graphql';
3
2
  import { ApolloClient, NormalizedCacheObject } from "@apollo/client";
4
- type PagePropsWithApollo = AppProps['pageProps'] & {
5
- [APOLLO_STATE_PROP_NAME]?: NormalizedCacheObject;
6
- };
3
+ type PagePropsWithApollo = AppProps['pageProps'] & {};
7
4
  export declare function useApollo(pageProps: PagePropsWithApollo, ENV: string): ApolloClient<NormalizedCacheObject>;
8
5
  export {};
@@ -1,6 +1,6 @@
1
1
  import { useMemo } from 'react';
2
2
  import { graphqlConfig } from '@ludo.ninja/api';
3
- import { APOLLO_STATE_PROP_NAME } from '@ludo.ninja/components/src/api/graphql';
3
+ import { APOLLO_STATE_PROP_NAME } from '@ludo.ninja/components/dist/api/graphql';
4
4
  export function useApollo(pageProps, ENV) {
5
5
  var state = pageProps[APOLLO_STATE_PROP_NAME];
6
6
  return useMemo(function () { return graphqlConfig.initializeApollo(state, ENV); }, [state, ENV]);