From e6e92d108f21c9f77dff1456e03c8e86bef48ce9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Kha Date: Fri, 12 Apr 2024 14:25:18 +0200 Subject: [PATCH] [website] Fix init icon in ReactLive --- .../components/react-live/ReactLiveDisplay.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/filigran-website/components/react-live/ReactLiveDisplay.tsx b/projects/filigran-website/components/react-live/ReactLiveDisplay.tsx index f496c86..111c388 100644 --- a/projects/filigran-website/components/react-live/ReactLiveDisplay.tsx +++ b/projects/filigran-website/components/react-live/ReactLiveDisplay.tsx @@ -16,7 +16,10 @@ const ReactLiveDisplay: FunctionComponent = ({ codeExample, noInline, }) => { - const customComponent = {...FiligranUIComponent, ...FiligranIcon} + const customIcon = { ...FiligranIcon }; + // @ts-ignore + delete customIcon['default']; + const customComponent = {...FiligranUIComponent, ...customIcon} return (