From c65900c7e0e192dcdd9cc385f0bf0f878f135bfe Mon Sep 17 00:00:00 2001 From: Harshit Pant Date: Sun, 27 Jan 2019 20:13:02 +0530 Subject: [PATCH] Passed missing props from the Middlware (#912) * fix: add shareEnabled option in the props * fix: pass fix endpoint from the props and removed unused redux code * fix: revert fixEndpoint removal from the store --- .../graphql-playground-react/src/components/Playground.tsx | 3 ++- .../src/components/Playground/GraphQLEditor.tsx | 6 +++++- .../src/components/PlaygroundWrapper.tsx | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/graphql-playground-react/src/components/Playground.tsx b/packages/graphql-playground-react/src/components/Playground.tsx index b23b38ef8..6ed13fb0e 100644 --- a/packages/graphql-playground-react/src/components/Playground.tsx +++ b/packages/graphql-playground-react/src/components/Playground.tsx @@ -62,7 +62,7 @@ export interface Props { subscriptionEndpoint?: string projectId?: string shareEnabled?: boolean - adminAuthToken?: string + fixedEndpoint?: boolean onSuccess?: (graphQLParams: any, response: any) => void isEndpoint?: boolean isApp?: boolean @@ -302,6 +302,7 @@ export class Playground extends React.PureComponent { ) : ( )} diff --git a/packages/graphql-playground-react/src/components/Playground/GraphQLEditor.tsx b/packages/graphql-playground-react/src/components/Playground/GraphQLEditor.tsx index e69514b7b..45ca83628 100644 --- a/packages/graphql-playground-react/src/components/Playground/GraphQLEditor.tsx +++ b/packages/graphql-playground-react/src/components/Playground/GraphQLEditor.tsx @@ -75,6 +75,7 @@ import { ResponseRecord } from '../../state/sessions/reducers' export interface Props { onRef?: any shareEnabled?: boolean + fixedEndpoint?: boolean schema?: GraphQLSchema } @@ -167,7 +168,10 @@ class GraphQLEditor extends React.PureComponent { return ( - +