From 2c51f0a69b362b53bff9820ed91fad74bec78baf Mon Sep 17 00:00:00 2001 From: Josh Black Date: Wed, 15 Sep 2021 10:58:18 -0500 Subject: [PATCH] fix(overview-page): update image import --- src/components/ComponentOverview/ComponentOverview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ComponentOverview/ComponentOverview.js b/src/components/ComponentOverview/ComponentOverview.js index 96a583354cd..e9df06af010 100644 --- a/src/components/ComponentOverview/ComponentOverview.js +++ b/src/components/ComponentOverview/ComponentOverview.js @@ -19,10 +19,10 @@ class ComponentOverview extends React.Component { let componentImg; try { - componentImg = require(`./images/${component}.svg`); + componentImg = require(`./images/${component}.svg`).default; } catch (e) { // eslint-disable-next-line global-require - componentImg = require('./images/NoImage.svg'); + componentImg = require('./images/NoImage.svg').default; } return (