From 3f393004402f76402791bd15336db98eb52d74a8 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Thu, 16 Sep 2021 17:01:22 -0500 Subject: [PATCH] fix(overview-page): update image import (#2545) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- 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 (