From a80879572e7f9e56141fb519874c5234dd6c107c Mon Sep 17 00:00:00 2001 From: rakannimer Date: Thu, 29 Aug 2019 16:23:12 +0300 Subject: [PATCH] fix(docz): initialize components context with defaultComponents --- core/docz/src/hooks/useComponents.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/docz/src/hooks/useComponents.tsx b/core/docz/src/hooks/useComponents.tsx index 540445d21..3d7fbf016 100644 --- a/core/docz/src/hooks/useComponents.tsx +++ b/core/docz/src/hooks/useComponents.tsx @@ -46,7 +46,7 @@ export interface ComponentsProviderProps { components: ComponentsMap } -const ctx = createContext({}) +const ctx = createContext(defaultComponents) export const ComponentsProvider: SFC = ({ components: themeComponents = {}, children,