From d71b1d19d71fcd35680fdce946cfc87257168a96 Mon Sep 17 00:00:00 2001 From: Jolie Rabideau Date: Thu, 21 Sep 2023 11:16:49 -0400 Subject: [PATCH] fix icons --- .../extension-card.component.tsx | 11 ++++++----- .../extension-list.component.tsx | 4 ++-- .../extension-manager-tab.component.tsx | 18 +++++++++--------- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/renderer/components/extension-manager/extension-card.component.tsx b/src/renderer/components/extension-manager/extension-card.component.tsx index 7f3993df2b..72e359be36 100644 --- a/src/renderer/components/extension-manager/extension-card.component.tsx +++ b/src/renderer/components/extension-manager/extension-card.component.tsx @@ -38,11 +38,12 @@ export default function ExtensionCard({ children, }: ExtensionCardProps) { const avatar = useMemo( - () => - iconFilePath ? ( - - ) : null, - [extensionDescription, iconFilePath], + () => ( + + {!iconFilePath ? extensionName[0] : null} + + ), + [extensionDescription, extensionName, iconFilePath], ); const isGallery = useMemo(() => className && className === 'square', [className]); diff --git a/src/renderer/components/extension-manager/extension-list.component.tsx b/src/renderer/components/extension-manager/extension-list.component.tsx index 5e8314f774..3df7be5fc3 100644 --- a/src/renderer/components/extension-manager/extension-list.component.tsx +++ b/src/renderer/components/extension-manager/extension-list.component.tsx @@ -28,7 +28,7 @@ export type Extension = { /** * File path to the extensions icon */ - filePath?: string; + iconFilePath?: string; }; type ExtensionListProps = Omit & @@ -81,7 +81,7 @@ export default function ExtensionList({