From 748f05344c7bec97308f187dbe32a2eb20f304a6 Mon Sep 17 00:00:00 2001 From: Andrew Ross Date: Sat, 12 Dec 2020 13:47:10 -0600 Subject: [PATCH] pulled changes from develop -- converted ManagedUIContext to a function (non-arrow) with explicit React.ReactNode props -- url to article explaining benefits of this revised configuration included in a comment (compone nts/context, line 185) --- components/ui/context.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ui/context.tsx b/components/ui/context.tsx index 5c95a75b7..78a1a9141 100644 --- a/components/ui/context.tsx +++ b/components/ui/context.tsx @@ -182,7 +182,7 @@ interface ManagedUIContextProps { children: React.ReactNode } -// please see https://medium.com/variant-as/a-better-way-to-type-react-components-9a6460a1d4b7 +// please see for benefits of this configuretaion https://medium.com/variant-as/a-better-way-to-type-react-components-9a6460a1d4b7 export function ManagedUIContext(props: ManagedUIContextProps) { const { children } = props return (