From 9e2707ec62ca3e8ad3fd760de41c24c8a97f5e96 Mon Sep 17 00:00:00 2001 From: David Meade Date: Mon, 3 Feb 2020 17:35:07 -0800 Subject: [PATCH 1/2] add displayname to elements context --- src/components/Elements.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Elements.js b/src/components/Elements.js index 1661e4a..d7cc864 100644 --- a/src/components/Elements.js +++ b/src/components/Elements.js @@ -65,6 +65,7 @@ type ElementContext = {| |}; const ElementsContext = React.createContext(); +ElementsContext.displayName = 'Stripe'; export const parseElementsContext = ( ctx: ?ElementContext, From 60b24767840b9003bf1d10e5144a55a138b15d12 Mon Sep 17 00:00:00 2001 From: David Meade Date: Wed, 5 Feb 2020 09:51:24 -0800 Subject: [PATCH 2/2] Update src/components/Elements.js maintainer suggested context name Co-Authored-By: Christopher Henn <56489932+christopher-stripe@users.noreply.github.com> --- src/components/Elements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Elements.js b/src/components/Elements.js index d7cc864..2b338e3 100644 --- a/src/components/Elements.js +++ b/src/components/Elements.js @@ -65,7 +65,7 @@ type ElementContext = {| |}; const ElementsContext = React.createContext(); -ElementsContext.displayName = 'Stripe'; +ElementsContext.displayName = 'ElementsContext'; export const parseElementsContext = ( ctx: ?ElementContext,